[embedsubtitle] Fix error when duration is unknown

This commit is contained in:
pukkandan 2021-09-30 02:15:33 +05:30
parent 804ca01cc7
commit 1f2a268bd3
No known key found for this signature in database
GPG Key ID: 0F00D95A001F4698
1 changed files with 1 additions and 1 deletions

View File

@ -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