diff options
author | Jesús <heckyel@hyperbola.info> | 2022-02-27 08:33:06 +0800 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2022-02-27 08:33:06 +0800 |
commit | 703ef56c0740adc89c1277b4d26e1dbd577c8ba8 (patch) | |
tree | b3de2e204ce9306b98475fac1f8e9f6adfb32d4d | |
parent | 619367044478f509f5a5babb0b309ded674f2b4a (diff) | |
parent | 195c22840c594c8f9229cb47ffec2a8984c53a0c (diff) | |
download | hypervideo-pre-703ef56c0740adc89c1277b4d26e1dbd577c8ba8.tar.lz hypervideo-pre-703ef56c0740adc89c1277b4d26e1dbd577c8ba8.tar.xz hypervideo-pre-703ef56c0740adc89c1277b4d26e1dbd577c8ba8.zip |
updated from upstream | 27/02/2022 at 08:33
-rw-r--r-- | yt_dlp/downloader/fragment.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/yt_dlp/downloader/fragment.py b/yt_dlp/downloader/fragment.py index 7b213cd5f..24f4ec959 100644 --- a/yt_dlp/downloader/fragment.py +++ b/yt_dlp/downloader/fragment.py @@ -137,7 +137,12 @@ class FragmentFD(FileDownloader): if fragment_info_dict.get('filetime'): ctx['fragment_filetime'] = fragment_info_dict.get('filetime') ctx['fragment_filename_sanitized'] = fragment_filename - return True, self._read_fragment(ctx) + try: + return True, self._read_fragment(ctx) + except FileNotFoundError: + if not info_dict.get('is_live'): + raise + return False, None def _read_fragment(self, ctx): down, frag_sanitized = self.sanitize_open(ctx['fragment_filename_sanitized'], 'rb') |