From 4de5e5dcaca93a92b11b9f0bc63b2cd63ea57d48 Mon Sep 17 00:00:00 2001 From: Sergey M Date: Fri, 30 Nov 2018 00:11:59 +0700 Subject: [PATCH] Update azmedien.py --- youtube_dl/extractor/azmedien.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/youtube_dl/extractor/azmedien.py b/youtube_dl/extractor/azmedien.py index d3e15371f..fcbdc71b9 100644 --- a/youtube_dl/extractor/azmedien.py +++ b/youtube_dl/extractor/azmedien.py @@ -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) {