aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/downloader/common.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-03-10 20:56:24 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-03-11 22:07:42 +0530
commit0a473f2f0fd2629f009edb8bf127c4eed1738bf6 (patch)
tree01f36da16a89783568286c7ebf8cd75934d2e41e /yt_dlp/downloader/common.py
parente4edeb6226e2ba1433e562f52fa37b00e3da1a17 (diff)
downloadhypervideo-pre-0a473f2f0fd2629f009edb8bf127c4eed1738bf6.tar.lz
hypervideo-pre-0a473f2f0fd2629f009edb8bf127c4eed1738bf6.tar.xz
hypervideo-pre-0a473f2f0fd2629f009edb8bf127c4eed1738bf6.zip
More improvements to HLS/DASH external downloader code
* Fix error when there is no `protocol` in `info_dict` * Move HLS byte range detection to `Aria2cFD` so that the download will fall back to the native downloader instead of ffmpeg * Fix bug with getting no fragments in DASH * Convert `check_results` in `can_download` to a generator
Diffstat (limited to 'yt_dlp/downloader/common.py')
-rw-r--r--yt_dlp/downloader/common.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/yt_dlp/downloader/common.py b/yt_dlp/downloader/common.py
index 2a9a62df4..8b16ad854 100644
--- a/yt_dlp/downloader/common.py
+++ b/yt_dlp/downloader/common.py
@@ -326,6 +326,12 @@ class FileDownloader(object):
"""Report it was impossible to resume download."""
self.to_screen('[download] Unable to resume')
+ @staticmethod
+ def supports_manifest(manifest):
+ """ Whether the downloader can download the fragments from the manifest.
+ Redefine in subclasses if needed. """
+ pass
+
def download(self, filename, info_dict, subtitle=False):
"""Download to a filename using the info from info_dict
Return True on success and False otherwise