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
1 changed files with 2 additions and 0 deletions

View File

@ -134,6 +134,8 @@ class FragmentFD(FileDownloader):
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: