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