logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

senalcolombia.py (1068B)


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