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.

33 lines
1.1 KiB

  1. from __future__ import unicode_literals
  2. from .common import InfoExtractor
  3. class FoxSportsIE(InfoExtractor):
  4. _VALID_URL = r'https?://(?:www\.)?foxsports\.com/(?:[^/]+/)*video/(?P<id>\d+)'
  5. _TEST = {
  6. 'url': 'http://www.foxsports.com/tennessee/video/432609859715',
  7. 'md5': 'b49050e955bebe32c301972e4012ac17',
  8. 'info_dict': {
  9. 'id': '432609859715',
  10. 'ext': 'mp4',
  11. 'title': 'Courtney Lee on going up 2-0 in series vs. Blazers',
  12. 'description': 'Courtney Lee talks about Memphis being focused.',
  13. # TODO: fix timestamp
  14. 'upload_date': '19700101', # '20150423',
  15. # 'timestamp': 1429761109,
  16. 'uploader': 'NEWA-FNG-FOXSPORTS',
  17. },
  18. 'params': {
  19. # m3u8 download
  20. 'skip_download': True,
  21. },
  22. 'add_ie': ['ThePlatform'],
  23. }
  24. def _real_extract(self, url):
  25. video_id = self._match_id(url)
  26. return self.url_result(
  27. 'https://feed.theplatform.com/f/BKQ29B/foxsports-all?byId=' + video_id, 'ThePlatformFeed')