diff options
author | Jesús <heckyel@hyperbola.info> | 2021-06-21 17:00:05 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-06-21 17:00:05 -0500 |
commit | c4e268a48c8c85170b565cd57b5e571530929b0f (patch) | |
tree | 9da4671819a0223b3cffa092b4890bd85e3da008 /youtube_dl/extractor/umg.py | |
parent | 1699acfb4b1547ef56f72a14db4b78124cc7e942 (diff) | |
parent | 41317030017418c89742594a80c0596c4b26bbb9 (diff) | |
download | hypervideo-pre-c4e268a48c8c85170b565cd57b5e571530929b0f.tar.lz hypervideo-pre-c4e268a48c8c85170b565cd57b5e571530929b0f.tar.xz hypervideo-pre-c4e268a48c8c85170b565cd57b5e571530929b0f.zip |
updated from upstream | 21/06/2021 at 17:00
Diffstat (limited to 'youtube_dl/extractor/umg.py')
-rw-r--r-- | youtube_dl/extractor/umg.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/youtube_dl/extractor/umg.py b/youtube_dl/extractor/umg.py index d815cd9a6..47948b6ce 100644 --- a/youtube_dl/extractor/umg.py +++ b/youtube_dl/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') |