From e06bd8800fb98e9dc1537e9f1ebf3aaeea5d9b8c Mon Sep 17 00:00:00 2001 From: pukkandan Date: Fri, 15 Apr 2022 23:43:07 +0530 Subject: [PATCH] Fix `--skip-unavailable-fragments` Bug in d71fd412495af9ebccef807379859a0baa97ddee Closes #3437 --- yt_dlp/downloader/fragment.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/yt_dlp/downloader/fragment.py b/yt_dlp/downloader/fragment.py index e5bc23e54..9012a1795 100644 --- a/yt_dlp/downloader/fragment.py +++ b/yt_dlp/downloader/fragment.py @@ -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: