[cleanup] Misc (#8968)
[yt-dlp.git] / yt_dlp / extractor / senalcolombia.py
blobb2f354faef2701e7d835ae9ee9213815aa9bf6dd
1 from .common import InfoExtractor
2 from .rtvcplay import RTVCKalturaIE
5 class SenalColombiaLiveIE(InfoExtractor):
6 _WORKING = False
7 _VALID_URL = r'https?://(?:www\.)?senalcolombia\.tv/(?P<id>senal-en-vivo)'
9 _TESTS = [{
10 'url': 'https://www.senalcolombia.tv/senal-en-vivo',
11 'info_dict': {
12 'id': 'indexSC',
13 'title': 're:^SeƱal Colombia',
14 'description': 'md5:799f16a401d97f40c33a2c6a3e2a507b',
15 'thumbnail': r're:^https?://.*\.(?:jpg|png)',
16 'live_status': 'is_live',
17 'ext': 'mp4',
19 'params': {
20 'skip_download': 'Livestream',
24 def _real_extract(self, url):
25 display_id = self._match_id(url)
26 webpage = self._download_webpage(url, display_id)
28 hydration = self._search_json(
29 r'<script\b[^>]*data-drupal-selector\s*=\s*"[^"]*drupal-settings-json[^"]*"[^>]*>',
30 webpage, 'hydration', display_id)
32 return self.url_result(hydration['envivosrc'], RTVCKalturaIE, display_id)