Update azmedien.py
This commit is contained in:
parent
d915642fae
commit
4de5e5dcac
@ -52,12 +52,12 @@ class AZMedienIE(InfoExtractor):
|
|||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
mobj = re.match(self._VALID_URL, url)
|
mobj = re.match(self._VALID_URL, url)
|
||||||
|
host = mobj.group('host')
|
||||||
video_id = mobj.group('id')
|
video_id = mobj.group('id')
|
||||||
entry_id = mobj.group('kaltura_id')
|
entry_id = mobj.group('kaltura_id')
|
||||||
|
|
||||||
if not entry_id:
|
if not entry_id:
|
||||||
api_path = '/api/pub/gql/%s' % mobj.group('host').split('.')[0]
|
api_url = 'https://www.%s/api/pub/gql/%s' % (host, host.split('.')[0])
|
||||||
api_url = 'https://www.%s%s' % (mobj.group('host'), api_path)
|
|
||||||
payload = {
|
payload = {
|
||||||
'query': '''query VideoContext($articleId: ID!) {
|
'query': '''query VideoContext($articleId: ID!) {
|
||||||
article: node(id: $articleId) {
|
article: node(id: $articleId) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user