1
0
mirror of https://github.com/l1ving/youtube-dl synced 2026-05-26 02:29:55 +08:00

Update azmedien.py

This commit is contained in:
Sergey M
2018-11-30 00:11:59 +07:00
committed by GitHub
Unverified
parent d915642fae
commit 4de5e5dcac
+2 -2
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) {