0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-25 02:45:12 +00:00

Fix --skip-unavailable-fragments

Bug in d71fd41249
Closes #3437
This commit is contained in:
pukkandan 2022-04-15 23:43:07 +05:30
parent abfecb7bc1
commit e06bd8800f
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39

View file

@ -134,6 +134,8 @@ def _download_fragment(self, ctx, frag_url, info_dict, headers=None, request_dat
return True
def _read_fragment(self, ctx):
if not ctx.get('fragment_filename_sanitized'):
return None
try:
down, frag_sanitized = self.sanitize_open(ctx['fragment_filename_sanitized'], 'rb')
except FileNotFoundError: