diff options
author | MinePlayersPE <20515340+MinePlayersPE@users.noreply.github.com> | 2022-01-20 05:23:55 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-20 03:53:55 +0530 |
commit | 426764371fa52dde8fb9bedad69a3e58e5c391b9 (patch) | |
tree | ec3bd60e8991cb52c85e0ce107778688e0921482 /yt_dlp/extractor/common.py | |
parent | 64f36541c9729873c84fb69722557f84499ebcab (diff) | |
download | hypervideo-pre-426764371fa52dde8fb9bedad69a3e58e5c391b9.tar.lz hypervideo-pre-426764371fa52dde8fb9bedad69a3e58e5c391b9.tar.xz hypervideo-pre-426764371fa52dde8fb9bedad69a3e58e5c391b9.zip |
[iq.com] Add extractors (#2354)
Closes #704
Authored by: MinePlayersPE
Diffstat (limited to 'yt_dlp/extractor/common.py')
-rw-r--r-- | yt_dlp/extractor/common.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py index 3a61eecc1..a23840e41 100644 --- a/yt_dlp/extractor/common.py +++ b/yt_dlp/extractor/common.py @@ -45,6 +45,7 @@ from ..utils import ( determine_ext, determine_protocol, dict_get, + encode_data_uri, error_to_compat_str, extract_attributes, ExtractorError, @@ -2106,7 +2107,7 @@ class InfoExtractor(object): headers=headers, query=query, video_id=video_id) def _parse_m3u8_formats_and_subtitles( - self, m3u8_doc, m3u8_url, ext=None, entry_protocol='m3u8_native', + self, m3u8_doc, m3u8_url=None, ext=None, entry_protocol='m3u8_native', preference=None, quality=None, m3u8_id=None, live=False, note=None, errnote=None, fatal=True, data=None, headers={}, query={}, video_id=None): @@ -2156,7 +2157,7 @@ class InfoExtractor(object): formats = [{ 'format_id': join_nonempty(m3u8_id, idx), 'format_index': idx, - 'url': m3u8_url, + 'url': m3u8_url or encode_data_uri(m3u8_doc.encode('utf-8'), 'application/x-mpegurl'), 'ext': ext, 'protocol': entry_protocol, 'preference': preference, |