aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/YoutubeDL.py
diff options
context:
space:
mode:
authorMinePlayersPE <20515340+MinePlayersPE@users.noreply.github.com>2022-01-20 05:23:55 +0700
committerGitHub <noreply@github.com>2022-01-20 03:53:55 +0530
commit426764371fa52dde8fb9bedad69a3e58e5c391b9 (patch)
treeec3bd60e8991cb52c85e0ce107778688e0921482 /yt_dlp/YoutubeDL.py
parent64f36541c9729873c84fb69722557f84499ebcab (diff)
[iq.com] Add extractors (#2354)
Closes #704 Authored by: MinePlayersPE
Diffstat (limited to 'yt_dlp/YoutubeDL.py')
-rw-r--r--yt_dlp/YoutubeDL.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py
index dfca76bb0..21edfe339 100644
--- a/yt_dlp/YoutubeDL.py
+++ b/yt_dlp/YoutubeDL.py
@@ -2751,7 +2751,9 @@ class YoutubeDL(object):
if not test:
for ph in self._progress_hooks:
fd.add_progress_hook(ph)
- urls = '", "'.join([f['url'] for f in info.get('requested_formats', [])] or [info['url']])
+ urls = '", "'.join(
+ (f['url'].split(',')[0] + ',<data>' if f['url'].startswith('data:') else f['url'])
+ for f in info.get('requested_formats', []) or [info])
self.write_debug('Invoking downloader on "%s"' % urls)
# Note: Ideally info should be a deep-copied so that hooks cannot modify it.