mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +00:00 
			
		
		
		
	[embedsubtitle] Fix error when duration is unknown
This commit is contained in:
		| @@ -545,7 +545,7 @@ class FFmpegEmbedSubtitlePP(FFmpegPostProcessor): | |||||||
|             return [], information |             return [], information | ||||||
|  |  | ||||||
|         filename = information['filepath'] |         filename = information['filepath'] | ||||||
|         if self._duration_mismatch( |         if information.get('duration') and self._duration_mismatch( | ||||||
|                 self._get_real_video_duration(information, False), information['duration']): |                 self._get_real_video_duration(information, False), information['duration']): | ||||||
|             self.to_screen(f'Skipping {self.pp_key()} since the real and expected durations mismatch') |             self.to_screen(f'Skipping {self.pp_key()} since the real and expected durations mismatch') | ||||||
|             return [], information |             return [], information | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 pukkandan
					pukkandan