mirror of
				https://github.com/yattee/yattee.git
				synced 2025-11-03 22:22:02 +00:00 
			
		
		
		
	Update watched date at every watch
This commit is contained in:
		@@ -72,13 +72,12 @@ extension PlayerModel {
 | 
				
			|||||||
                watch.videoID = id
 | 
					                watch.videoID = id
 | 
				
			||||||
            } else {
 | 
					            } else {
 | 
				
			||||||
                watch = results?.first
 | 
					                watch = results?.first
 | 
				
			||||||
 | 
					 | 
				
			||||||
                if !self.resetWatchedStatusOnPlaying, watch.finished {
 | 
					 | 
				
			||||||
                    return
 | 
					 | 
				
			||||||
                }
 | 
					 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if let seconds = self.playerItemDuration?.seconds {
 | 
					            if self.resetWatchedStatusOnPlaying,
 | 
				
			||||||
 | 
					               !watch.finished,
 | 
				
			||||||
 | 
					               let seconds = self.playerItemDuration?.seconds
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
                watch.videoDuration = seconds
 | 
					                watch.videoDuration = seconds
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user