aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/downloader/dash.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-04-10 20:38:33 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-04-10 20:57:52 +0530
commit52a8a1e1b93dbc88f0018d4842f1e90ba96e095f (patch)
tree3708a1e4cd100657896d6aef0eb0f1352fc7cc3d /yt_dlp/downloader/dash.py
parentd818eb747361117ec86a5c4fe217d5d6956f36d3 (diff)
downloadhypervideo-pre-52a8a1e1b93dbc88f0018d4842f1e90ba96e095f.tar.lz
hypervideo-pre-52a8a1e1b93dbc88f0018d4842f1e90ba96e095f.tar.xz
hypervideo-pre-52a8a1e1b93dbc88f0018d4842f1e90ba96e095f.zip
Option to choose different downloader for different protocols
* Renamed `--external-downloader-args` to `--downloader-args` * Added `native` as an option for the downloader * Use similar syntax to `--downloader-args` etc. Eg: `--downloader dash:native --downloader aria2c` * Deprecated `--hls-prefer-native` and `--hls-prefer-ffmpeg` since the same can now be done with `--downloader "m3u8:native"` and `m3u8:ffmpeg` respectively * Split `frag_urls` protocol into `m3u8_frag_urls` and `dash_frag_urls` * Standardize shortening of protocol names with `downloader.shorten_protocol_name`
Diffstat (limited to 'yt_dlp/downloader/dash.py')
-rw-r--r--yt_dlp/downloader/dash.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/downloader/dash.py b/yt_dlp/downloader/dash.py
index 2f29ff8f2..65dc69f7e 100644
--- a/yt_dlp/downloader/dash.py
+++ b/yt_dlp/downloader/dash.py
@@ -20,7 +20,7 @@ from ..utils import (
class DashSegmentsFD(FragmentFD):
"""
Download segments in a DASH manifest. External downloaders can take over
- the fragment downloads by supporting the 'frag_urls' protocol
+ the fragment downloads by supporting the 'dash_frag_urls' protocol
"""
FD_NAME = 'dashsegments'
@@ -30,7 +30,7 @@ class DashSegmentsFD(FragmentFD):
fragments = info_dict['fragments'][:1] if self.params.get(
'test', False) else info_dict['fragments']
- real_downloader = _get_real_downloader(info_dict, 'frag_urls', self.params, None)
+ real_downloader = _get_real_downloader(info_dict, 'dash_frag_urls', self.params, None)
ctx = {
'filename': filename,