Skip to content

Commit

Permalink
[umg:de] Update GraphQL API URL (#29304)
Browse files Browse the repository at this point in the history
Previous one no longer resolves

Co-authored-by: Sergey M. <dstftw@gmail.com>
  • Loading branch information
einstein95 and dstftw committed Jun 20, 2021
1 parent 57b9a4b commit cc21aeb
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions youtube_dl/extractor/umg.py
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -56,11 +56,9 @@ def _real_extract(self, url):
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')
Expand Down

0 comments on commit cc21aeb

Please sign in to comment.