mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-03 00:05:36 +08:00
[azmedien] Fix information extractor (closes #18334)
This commit is contained in:
parent
d9df8f120b
commit
d915642fae
@ -36,7 +36,6 @@ class AZMedienIE(InfoExtractor):
|
|||||||
'id': '1_anruz3wy',
|
'id': '1_anruz3wy',
|
||||||
'ext': 'mp4',
|
'ext': 'mp4',
|
||||||
'title': 'Bundesrats-Vakanzen / EU-Rahmenabkommen',
|
'title': 'Bundesrats-Vakanzen / EU-Rahmenabkommen',
|
||||||
'description': 'md5:dd9f96751ec9c35e409a698a328402f3',
|
|
||||||
'uploader_id': 'TVOnline',
|
'uploader_id': 'TVOnline',
|
||||||
'upload_date': '20180930',
|
'upload_date': '20180930',
|
||||||
'timestamp': 1538328802,
|
'timestamp': 1538328802,
|
||||||
@ -57,10 +56,7 @@ class AZMedienIE(InfoExtractor):
|
|||||||
entry_id = mobj.group('kaltura_id')
|
entry_id = mobj.group('kaltura_id')
|
||||||
|
|
||||||
if not entry_id:
|
if not entry_id:
|
||||||
webpage = self._download_webpage(url, video_id)
|
api_path = '/api/pub/gql/%s' % mobj.group('host').split('.')[0]
|
||||||
api_path = self._search_regex(
|
|
||||||
r'["\']apiPath["\']\s*:\s*["\']([^"^\']+)["\']',
|
|
||||||
webpage, 'api path')
|
|
||||||
api_url = 'https://www.%s%s' % (mobj.group('host'), api_path)
|
api_url = 'https://www.%s%s' % (mobj.group('host'), api_path)
|
||||||
payload = {
|
payload = {
|
||||||
'query': '''query VideoContext($articleId: ID!) {
|
'query': '''query VideoContext($articleId: ID!) {
|
||||||
|
Loading…
Reference in New Issue
Block a user