]>
Commit | Line | Data |
---|---|---|
8d9453b9 JMF |
1 | from .mtv import MTVServicesInfoExtractor |
2 | ||
3 | ||
6843ac5b RA |
4 | class BellatorIE(MTVServicesInfoExtractor): |
5 | _VALID_URL = r'https?://(?:www\.)?bellator\.com/[^/]+/[\da-z]{6}(?:[/?#&]|$)' | |
e8882e70 | 6 | _TESTS = [{ |
6843ac5b | 7 | 'url': 'http://www.bellator.com/fight/atwr7k/bellator-158-michael-page-vs-evangelista-cyborg', |
8d9453b9 | 8 | 'info_dict': { |
9d8f3a12 RA |
9 | 'title': 'Michael Page vs. Evangelista Cyborg', |
10 | 'description': 'md5:0d917fc00ffd72dd92814963fc6cbb05', | |
8d9453b9 | 11 | }, |
9d8f3a12 | 12 | 'playlist_count': 3, |
6303fc82 | 13 | }, { |
6843ac5b RA |
14 | 'url': 'http://www.bellator.com/video-clips/bw6k7n/bellator-158-foundations-michael-venom-page', |
15 | 'only_matching': True, | |
16 | }] | |
17 | ||
57227618 | 18 | _FEED_URL = 'http://www.bellator.com/feeds/mrss/' |
6843ac5b RA |
19 | _GEO_COUNTRIES = ['US'] |
20 | ||
21 | ||
22 | class ParamountNetworkIE(MTVServicesInfoExtractor): | |
23 | _VALID_URL = r'https?://(?:www\.)?paramountnetwork\.com/[^/]+/[\da-z]{6}(?:[/?#&]|$)' | |
24 | _TESTS = [{ | |
25 | 'url': 'http://www.paramountnetwork.com/episodes/j830qm/lip-sync-battle-joel-mchale-vs-jim-rash-season-2-ep-13', | |
6303fc82 ML |
26 | 'info_dict': { |
27 | 'id': '37ace3a8-1df6-48be-85b8-38df8229e241', | |
28 | 'ext': 'mp4', | |
29 | 'title': 'Lip Sync Battle|April 28, 2016|2|209|Joel McHale Vs. Jim Rash|Act 1', | |
30 | 'description': 'md5:a739ca8f978a7802f67f8016d27ce114', | |
31 | }, | |
6843ac5b RA |
32 | 'params': { |
33 | # m3u8 download | |
34 | 'skip_download': True, | |
35 | }, | |
e8882e70 | 36 | }] |
8d9453b9 | 37 | |
30a074c2 | 38 | _FEED_URL = 'http://feeds.mtvnservices.com/od/feed/intl-mrss-player-feed' |
c9bd503e | 39 | _GEO_COUNTRIES = ['US'] |
245cbb33 | 40 | |
30a074c2 | 41 | def _get_feed_query(self, uri): |
42 | return { | |
43 | 'arcEp': 'paramountnetwork.com', | |
a820dc72 | 44 | 'imageEp': 'paramountnetwork.com', |
30a074c2 | 45 | 'mgid': uri, |
46 | } |