You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
995 B

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