mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-08-25 00:31:10 +02:00
[embedsubtitle] Fix error when duration is unknown
This commit is contained in:
parent
804ca01cc7
commit
1f2a268bd3
@ -545,7 +545,7 @@ def run(self, information):
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user