diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-05-04 21:24:00 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-05-06 20:50:44 +0530 |
commit | e8e738406a01f2a2ca07ef348b453a49d19d1614 (patch) | |
tree | 0875879fc2512c0fef9c5fe7b7945566355131db /yt_dlp/downloader/fragment.py | |
parent | e625be0d10d96a20702d630dcc88e3269554e172 (diff) | |
download | hypervideo-pre-e8e738406a01f2a2ca07ef348b453a49d19d1614.tar.lz hypervideo-pre-e8e738406a01f2a2ca07ef348b453a49d19d1614.tar.xz hypervideo-pre-e8e738406a01f2a2ca07ef348b453a49d19d1614.zip |
Add experimental option `--check-formats` to test the URLs before format selection
Diffstat (limited to 'yt_dlp/downloader/fragment.py')
-rw-r--r-- | yt_dlp/downloader/fragment.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/yt_dlp/downloader/fragment.py b/yt_dlp/downloader/fragment.py index fadd0dfc5..6d6d28483 100644 --- a/yt_dlp/downloader/fragment.py +++ b/yt_dlp/downloader/fragment.py @@ -31,6 +31,7 @@ class FragmentFD(FileDownloader): Skip unavailable fragments (DASH and hlsnative only) keep_fragments: Keep downloaded fragments on disk after downloading is finished + _no_ytdl_file: Don't use .ytdl file For each incomplete fragment download yt-dlp keeps on disk a special bookkeeping file with download state and metadata (in future such files will @@ -69,9 +70,8 @@ class FragmentFD(FileDownloader): self._prepare_frag_download(ctx) self._start_frag_download(ctx) - @staticmethod - def __do_ytdl_file(ctx): - return not ctx['live'] and not ctx['tmpfilename'] == '-' + def __do_ytdl_file(self, ctx): + return not ctx['live'] and not ctx['tmpfilename'] == '-' and not self.params.get('_no_ytdl_file') def _read_ytdl_file(self, ctx): assert 'ytdl_corrupt' not in ctx |