Skip to content

Commit cc21aeb

Browse files
einstein95dstftw
andauthored
[umg:de] Update GraphQL API URL (#29304)
Previous one no longer resolves Co-authored-by: Sergey M. <[email protected]>
1 parent 57b9a4b commit cc21aeb

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

youtube_dl/extractor/umg.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class UMGDeIE(InfoExtractor):
2828
def _real_extract(self, url):
2929
video_id = self._match_id(url)
3030
video_data = self._download_json(
31-
'https://api.universal-music.de/graphql',
31+
'https://graphql.universal-music.de/',
3232
video_id, query={
3333
'query': '''{
3434
universalMusic(channel:16) {
@@ -56,11 +56,9 @@ def _real_extract(self, url):
5656
formats = []
5757

5858
def add_m3u8_format(format_id):
59-
m3u8_formats = self._extract_m3u8_formats(
59+
formats.extend(self._extract_m3u8_formats(
6060
hls_url_template % format_id, video_id, 'mp4',
61-
'm3u8_native', m3u8_id='hls', fatal='False')
62-
if m3u8_formats and m3u8_formats[0].get('height'):
63-
formats.extend(m3u8_formats)
61+
'm3u8_native', m3u8_id='hls', fatal=False))
6462

6563
for f in video_data.get('formats', []):
6664
f_url = f.get('url')

0 commit comments

Comments
 (0)