[downloader/external:ffmpegfd] check for None value of start_time
This commit is contained in:
		
							parent
							
								
									99cbe98ce8
								
							
						
					
					
						commit
						f34294fa0c
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -175,7 +175,7 @@ class FFmpegFD(ExternalFD):
 | 
			
		|||
 | 
			
		||||
        args = [ffpp.executable, '-y']
 | 
			
		||||
 | 
			
		||||
        start_time = info_dict.get('start_time', 0)
 | 
			
		||||
        start_time = info_dict.get('start_time') or 0
 | 
			
		||||
        if start_time:
 | 
			
		||||
            args += ['-ss', compat_str(start_time)]
 | 
			
		||||
        end_time = info_dict.get('end_time')
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue