1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-01-23 05:53:12 +08:00

Update azmedien.py

This commit is contained in:
Sergey M 2018-11-30 00:11:59 +07:00 committed by GitHub
parent d915642fae
commit 4de5e5dcac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,12 +52,12 @@ class AZMedienIE(InfoExtractor):
def _real_extract(self, url):
mobj = re.match(self._VALID_URL, url)
host = mobj.group('host')
video_id = mobj.group('id')
entry_id = mobj.group('kaltura_id')
if not entry_id:
api_path = '/api/pub/gql/%s' % mobj.group('host').split('.')[0]
api_url = 'https://www.%s%s' % (mobj.group('host'), api_path)
api_url = 'https://www.%s/api/pub/gql/%s' % (host, host.split('.')[0])
payload = {
'query': '''query VideoContext($articleId: ID!) {
article: node(id: $articleId) {