]>
Commit | Line | Data |
---|---|---|
9b30cd3d E |
1 | from .common import InfoExtractor |
2 | from .rtvcplay import RTVCKalturaIE | |
3 | ||
4 | ||
5 | class SenalColombiaLiveIE(InfoExtractor): | |
df773c3d | 6 | _WORKING = False |
9b30cd3d E |
7 | _VALID_URL = r'https?://(?:www\.)?senalcolombia\.tv/(?P<id>senal-en-vivo)' |
8 | ||
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', | |
18 | }, | |
19 | 'params': { | |
20 | 'skip_download': 'Livestream', | |
21 | }, | |
22 | }] | |
23 | ||
24 | def _real_extract(self, url): | |
25 | display_id = self._match_id(url) | |
26 | webpage = self._download_webpage(url, display_id) | |
27 | ||
28 | hydration = self._search_json( | |
29 | r'<script\b[^>]*data-drupal-selector\s*=\s*"[^"]*drupal-settings-json[^"]*"[^>]*>', | |
30 | webpage, 'hydration', display_id) | |
31 | ||
32 | return self.url_result(hydration['envivosrc'], RTVCKalturaIE, display_id) |