[ie/mitele] Fix extractor (#11683)

Closes #11690
Authored by: DarkZeros
This commit is contained in:
DarkZeros 2024-12-01 14:21:57 +00:00 committed by GitHub
parent 360aed810a
commit cd0f934604
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -80,9 +80,9 @@ class MiTeleIE(TelecincoBaseIE):
def _real_extract(self, url): def _real_extract(self, url):
display_id = self._match_id(url) display_id = self._match_id(url)
webpage = self._download_webpage(url, display_id) webpage = self._download_webpage(url, display_id)
pre_player = self._parse_json(self._search_regex( pre_player = self._search_json(
r'window\.\$REACTBASE_STATE\.prePlayer_mtweb\s*=\s*({.+})', r'window\.\$REACTBASE_STATE\.prePlayer_mtweb\s*=',
webpage, 'Pre Player'), display_id)['prePlayer'] webpage, 'Pre Player', display_id)['prePlayer']
title = pre_player['title'] title = pre_player['title']
video_info = self._parse_content(pre_player['video'], url) video_info = self._parse_content(pre_player['video'], url)
content = pre_player.get('content') or {} content = pre_player.get('content') or {}