fix tva extractor

This commit is contained in:
Alexandre Huot 2024-04-29 21:22:48 -04:00
parent ac817bc83e
commit c3e2e17942
1 changed files with 2 additions and 3 deletions

View File

@ -64,9 +64,8 @@ class QubIE(InfoExtractor):
def _real_extract(self, url):
entity_id = self._match_id(url)
entity = self._download_json(
'https://www.qub.ca/proxy/pfu/content-delivery-service/v1/entities',
entity_id, query={'id': entity_id})
webpage = self._download_webpage(url, entity_id)
entity = self._search_nextjs_data(webpage, entity_id)['props']['initialProps']['pageProps']['fallbackData']
video_id = entity['videoId']
episode = strip_or_none(entity.get('name'))