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.

34 lines
1.3 KiB

  1. from __future__ import unicode_literals
  2. from .mtv import MTVServicesInfoExtractor
  3. class SpikeIE(MTVServicesInfoExtractor):
  4. _VALID_URL = r'https?://(?:[^/]+\.)?spike\.com/[^/]+/[\da-z]{6}(?:[/?#&]|$)'
  5. _TESTS = [{
  6. 'url': 'http://www.spike.com/video-clips/lhtu8m/auction-hunters-can-allen-ride-a-hundred-year-old-motorcycle',
  7. 'md5': '1a9265f32b0c375793d6c4ce45255256',
  8. 'info_dict': {
  9. 'id': 'b9c8221a-4e50-479a-b86d-3333323e38ba',
  10. 'ext': 'mp4',
  11. 'title': 'Auction Hunters|December 27, 2013|4|414|Can Allen Ride A Hundred Year-Old Motorcycle?',
  12. 'description': 'md5:fbed7e82ed5fad493615b3094a9499cb',
  13. 'timestamp': 1388120400,
  14. 'upload_date': '20131227',
  15. },
  16. }, {
  17. 'url': 'http://www.spike.com/video-clips/lhtu8m/',
  18. 'only_matching': True,
  19. }, {
  20. 'url': 'http://www.spike.com/video-clips/lhtu8m',
  21. 'only_matching': True,
  22. }, {
  23. 'url': 'http://bellator.spike.com/fight/atwr7k/bellator-158-michael-page-vs-evangelista-cyborg',
  24. 'only_matching': True,
  25. }, {
  26. 'url': 'http://bellator.spike.com/video-clips/bw6k7n/bellator-158-foundations-michael-venom-page',
  27. 'only_matching': True,
  28. }]
  29. _FEED_URL = 'http://www.spike.com/feeds/mrss/'
  30. _MOBILE_TEMPLATE = 'http://m.spike.com/videos/video.rbml?id=%s'