diff options
author | Alexander Seiler <seileralex@gmail.com> | 2018-11-29 18:12:18 +0100 |
---|---|---|
committer | Sergey M <dstftw@gmail.com> | 2018-11-30 00:12:18 +0700 |
commit | 053e5b12b2e38b7d343aafbb7dc13fb8e4933015 (patch) | |
tree | eca2a438696cc407bb06bddbb48b374eaac82618 /youtube_dl/extractor/azmedien.py | |
parent | d9df8f120b325766181fb474a8c534e51df78f17 (diff) |
[azmedien] Fix extraction (closes #18334)
Diffstat (limited to 'youtube_dl/extractor/azmedien.py')
-rw-r--r-- | youtube_dl/extractor/azmedien.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/youtube_dl/extractor/azmedien.py b/youtube_dl/extractor/azmedien.py index a57a5f114..fcbdc71b9 100644 --- a/youtube_dl/extractor/azmedien.py +++ b/youtube_dl/extractor/azmedien.py @@ -36,7 +36,6 @@ class AZMedienIE(InfoExtractor): 'id': '1_anruz3wy', 'ext': 'mp4', 'title': 'Bundesrats-Vakanzen / EU-Rahmenabkommen', - 'description': 'md5:dd9f96751ec9c35e409a698a328402f3', 'uploader_id': 'TVOnline', 'upload_date': '20180930', 'timestamp': 1538328802, @@ -53,15 +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: - webpage = self._download_webpage(url, video_id) - 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/api/pub/gql/%s' % (host, host.split('.')[0]) payload = { 'query': '''query VideoContext($articleId: ID!) { article: node(id: $articleId) { |