[cleanup] Misc (#8968)
[yt-dlp.git] / yt_dlp / extractor / spike.py
blob5c1c78d8fce73e2706f7fabab49d6a0f0b251ce6
1 from .mtv import MTVServicesInfoExtractor
4 class BellatorIE(MTVServicesInfoExtractor):
5 _VALID_URL = r'https?://(?:www\.)?bellator\.com/[^/]+/[\da-z]{6}(?:[/?#&]|$)'
6 _TESTS = [{
7 'url': 'http://www.bellator.com/fight/atwr7k/bellator-158-michael-page-vs-evangelista-cyborg',
8 'info_dict': {
9 'title': 'Michael Page vs. Evangelista Cyborg',
10 'description': 'md5:0d917fc00ffd72dd92814963fc6cbb05',
12 'playlist_count': 3,
13 }, {
14 'url': 'http://www.bellator.com/video-clips/bw6k7n/bellator-158-foundations-michael-venom-page',
15 'only_matching': True,
18 _FEED_URL = 'http://www.bellator.com/feeds/mrss/'
19 _GEO_COUNTRIES = ['US']
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',
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',
32 'params': {
33 # m3u8 download
34 'skip_download': True,
38 _FEED_URL = 'http://feeds.mtvnservices.com/od/feed/intl-mrss-player-feed'
39 _GEO_COUNTRIES = ['US']
41 def _get_feed_query(self, uri):
42 return {
43 'arcEp': 'paramountnetwork.com',
44 'imageEp': 'paramountnetwork.com',
45 'mgid': uri,