mirror of
https://github.com/ytdl-org/youtube-dl
synced 2024-11-27 04:26:50 +01:00
[umg:de] Update GraphQL API URL (#29304)
Previous one no longer resolves Co-authored-by: Sergey M. <dstftw@gmail.com>
This commit is contained in:
parent
57b9a4b4c6
commit
cc21aebe90
@ -28,7 +28,7 @@ class UMGDeIE(InfoExtractor):
|
|||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
video_id = self._match_id(url)
|
video_id = self._match_id(url)
|
||||||
video_data = self._download_json(
|
video_data = self._download_json(
|
||||||
'https://api.universal-music.de/graphql',
|
'https://graphql.universal-music.de/',
|
||||||
video_id, query={
|
video_id, query={
|
||||||
'query': '''{
|
'query': '''{
|
||||||
universalMusic(channel:16) {
|
universalMusic(channel:16) {
|
||||||
@ -56,11 +56,9 @@ class UMGDeIE(InfoExtractor):
|
|||||||
formats = []
|
formats = []
|
||||||
|
|
||||||
def add_m3u8_format(format_id):
|
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',
|
hls_url_template % format_id, video_id, 'mp4',
|
||||||
'm3u8_native', m3u8_id='hls', fatal='False')
|
'm3u8_native', m3u8_id='hls', fatal=False))
|
||||||
if m3u8_formats and m3u8_formats[0].get('height'):
|
|
||||||
formats.extend(m3u8_formats)
|
|
||||||
|
|
||||||
for f in video_data.get('formats', []):
|
for f in video_data.get('formats', []):
|
||||||
f_url = f.get('url')
|
f_url = f.get('url')
|
||||||
|
Loading…
Reference in New Issue
Block a user