outsidetv.py 939 B

12345678910111213141516171819202122232425
  1. from .common import InfoExtractor
  2. class OutsideTVIE(InfoExtractor):
  3. _VALID_URL = r'https?://(?:www\.)?outsidetv\.com/(?:[^/]+/)*?play/[a-zA-Z0-9]{8}/\d+/\d+/(?P<id>[a-zA-Z0-9]{8})'
  4. _TESTS = [{
  5. 'url': 'http://www.outsidetv.com/category/snow/play/ZjQYboH6/1/10/Hdg0jukV/4',
  6. 'md5': '192d968fedc10b2f70ec31865ffba0da',
  7. 'info_dict': {
  8. 'id': 'Hdg0jukV',
  9. 'ext': 'mp4',
  10. 'title': 'Home - Jackson Ep 1 | Arbor Snowboards',
  11. 'description': 'md5:41a12e94f3db3ca253b04bb1e8d8f4cd',
  12. 'upload_date': '20181225',
  13. 'timestamp': 1545742800,
  14. },
  15. }, {
  16. 'url': 'http://www.outsidetv.com/home/play/ZjQYboH6/1/10/Hdg0jukV/4',
  17. 'only_matching': True,
  18. }]
  19. def _real_extract(self, url):
  20. jw_media_id = self._match_id(url)
  21. return self.url_result(
  22. 'jwplatform:' + jw_media_id, 'JWPlatform', jw_media_id)