diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-06-23 06:56:37 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-06-23 07:34:55 +0530 |
commit | ed807c18376ecb61c2219b506040bc3e9464bde9 (patch) | |
tree | 1dbe1379f2e10edcca25ad846a0888b7bb61b30a /yt_dlp/extractor/umg.py | |
parent | 29f63c96720caa4272ad79aaedc4d436e4a7976a (diff) | |
download | hypervideo-pre-ed807c18376ecb61c2219b506040bc3e9464bde9.tar.lz hypervideo-pre-ed807c18376ecb61c2219b506040bc3e9464bde9.tar.xz hypervideo-pre-ed807c18376ecb61c2219b506040bc3e9464bde9.zip |
Update to ytdl-commit-379f52a
[liveleak] Remove extractor
https://github.com/ytdl-org/youtube-dl/commit/379f52a4954013767219d25099cce9e0f9401961
Diffstat (limited to 'yt_dlp/extractor/umg.py')
-rw-r--r-- | yt_dlp/extractor/umg.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/yt_dlp/extractor/umg.py b/yt_dlp/extractor/umg.py index 8c84f2009..c1b65d189 100644 --- a/yt_dlp/extractor/umg.py +++ b/yt_dlp/extractor/umg.py @@ -28,7 +28,7 @@ class UMGDeIE(InfoExtractor): def _real_extract(self, url): video_id = self._match_id(url) video_data = self._download_json( - 'https://api.universal-music.de/graphql', + 'https://graphql.universal-music.de/', video_id, query={ 'query': '''{ universalMusic(channel:16) { @@ -56,11 +56,9 @@ class UMGDeIE(InfoExtractor): formats = [] def add_m3u8_format(format_id): - m3u8_formats = self._extract_m3u8_formats( + formats.extend(self._extract_m3u8_formats( hls_url_template % format_id, video_id, 'mp4', - 'm3u8_native', m3u8_id='hls', fatal='False') - if m3u8_formats and m3u8_formats[0].get('height'): - formats.extend(m3u8_formats) + 'm3u8_native', m3u8_id='hls', fatal=False)) for f in video_data.get('formats', []): f_url = f.get('url') |