]> Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/southparkstudios.py
Update changelog.
[youtubedl] / youtube_dl / extractor / southparkstudios.py
1 from __future__ import unicode_literals
2
3 from .mtv import MTVServicesInfoExtractor
4
5
6 class SouthParkStudiosIE(MTVServicesInfoExtractor):
7 IE_NAME = 'southparkstudios.com'
8 _VALID_URL = r'https?://(www\.)?(?P<url>southparkstudios\.com/(clips|full-episodes)/(?P<id>.+?)(\?|#|$))'
9
10 _FEED_URL = 'http://www.southparkstudios.com/feeds/video-player/mrss'
11
12 _TESTS = [{
13 'url': 'http://www.southparkstudios.com/clips/104437/bat-daded#tab=featured',
14 'info_dict': {
15 'id': 'a7bff6c2-ed00-11e0-aca6-0026b9414f30',
16 'ext': 'mp4',
17 'title': 'Bat Daded',
18 'description': 'Randy disqualifies South Park by getting into a fight with Bat Dad.',
19 },
20 }]
21
22
23 class SouthparkDeIE(SouthParkStudiosIE):
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 }]