[embedsubtitle] Fix error when duration is unknown

pull/1129/head
pukkandan 2021-09-30 02:15:33 +05:30
rodzic 804ca01cc7
commit 1f2a268bd3
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0F00D95A001F4698
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -545,7 +545,7 @@ class FFmpegEmbedSubtitlePP(FFmpegPostProcessor):
return [], information
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.to_screen(f'Skipping {self.pp_key()} since the real and expected durations mismatch')
return [], information