[umg:de] Update GraphQL API URL (#29304)
authorLogan B <einstein95@users.noreply.github.com>
Sun, 20 Jun 2021 17:41:14 +0000 (05:41 +1200)
committerGitHub <noreply@github.com>
Sun, 20 Jun 2021 17:41:14 +0000 (00:41 +0700)
Previous one no longer resolves

Co-authored-by: Sergey M. <dstftw@gmail.com>
youtube_dl/extractor/umg.py

index d815cd9a6babe0f3336677e0dd8149ab1661c7b7..47948b6ce186e494e76f97a7f0213f3ec0ae9a97 100644 (file)
@@ -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')