Fix automark:download by marking state after calling download.
The previous order of operations was wrongly triggering the "video already downloaded" check in ycdldb.
This commit is contained in:
		
							parent
							
								
									f1e80dac94
								
							
						
					
					
						commit
						e3abf5f39d
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -38,9 +38,9 @@ class Channel(Base): | |||
| 
 | ||||
|             video = status['video'] | ||||
|             if status['new'] and self.automark not in [None, "pending"]: | ||||
|                 video.mark_state(self.automark, commit=False) | ||||
|                 if self.automark == 'downloaded': | ||||
|                     self.ycdldb.download_video(video.id, commit=False) | ||||
|                 video.mark_state(self.automark, commit=False) | ||||
| 
 | ||||
|             if not force and not status['new']: | ||||
|                 break | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue