]> Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/southpark.py
Initiate release.
[youtubedl] / youtube_dl / extractor / southpark.py
1 from __future__ import unicode_literals
2
3 from .mtv import MTVServicesInfoExtractor
4
5
6 class SouthParkIE(MTVServicesInfoExtractor):
7 IE_NAME = 'southpark.cc.com'
8 _VALID_URL = r'https?://(www\.)?(?P<url>southpark\.cc\.com/(clips|full-episodes)/(?P<id>.+?)(\?|#|$))'
9
10 _FEED_URL = 'http://www.southparkstudios.com/feeds/video-player/mrss'
11
12 _TESTS = [{
13 'url': 'http://southpark.cc.com/clips/104437/bat-daded#tab=featured',
14 'info_dict': {
15 'id': 'a7bff6c2-ed00-11e0-aca6-0026b9414f30',
16 'ext': 'mp4',
17 'title': 'South Park|Bat Daded',
18 'description': 'Randy disqualifies South Park by getting into a fight with Bat Dad.',
19 },
20 }]
21
22
23 class SouthparkDeIE(SouthParkIE):
24 IE_NAME = 'southpark.de'
25 _VALID_URL = r'https?://(www\.)?(?P<url>southpark\.de/(clips|alle-episoden)/(?P<id>.+?)(\?|#|$))'
26 _FEED_URL = 'http://www.southpark.de/feeds/video-player/mrss/'
27
28 _TESTS = [{
29 'url': 'http://www.southpark.de/clips/uygssh/the-government-wont-respect-my-privacy#tab=featured',
30 'info_dict': {
31 'id': '85487c96-b3b9-4e39-9127-ad88583d9bf2',
32 'ext': 'mp4',
33 'title': 'The Government Won\'t Respect My Privacy',
34 'description': 'Cartman explains the benefits of "Shitter" to Stan, Kyle and Craig.',
35 },
36 }]