]>
Commit | Line | Data |
---|---|---|
d55433bb | 1 | from __future__ import unicode_literals |
5a6fecc3 | 2 | |
84db8181 | 3 | from .mtv import MTVServicesInfoExtractor |
5a6fecc3 JMF |
4 | |
5 | ||
10d00a75 JMF |
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>.+?)(\?|#|$))' | |
5a6fecc3 JMF |
9 | |
10 | _FEED_URL = 'http://www.southparkstudios.com/feeds/video-player/mrss' | |
11 | ||
1672647a | 12 | _TESTS = [{ |
10d00a75 | 13 | 'url': 'http://southpark.cc.com/clips/104437/bat-daded#tab=featured', |
d55433bb PH |
14 | 'info_dict': { |
15 | 'id': 'a7bff6c2-ed00-11e0-aca6-0026b9414f30', | |
16 | 'ext': 'mp4', | |
3804b012 | 17 | 'title': 'South Park|Bat Daded', |
d55433bb | 18 | 'description': 'Randy disqualifies South Park by getting into a fight with Bat Dad.', |
5a6fecc3 | 19 | }, |
1672647a | 20 | }] |
5a6fecc3 | 21 | |
746f491f | 22 | |
10d00a75 | 23 | class SouthparkDeIE(SouthParkIE): |
d55433bb PH |
24 | IE_NAME = 'southpark.de' |
25 | _VALID_URL = r'https?://(www\.)?(?P<url>southpark\.de/(clips|alle-episoden)/(?P<id>.+?)(\?|#|$))' | |
746f491f | 26 | _FEED_URL = 'http://www.southpark.de/feeds/video-player/mrss/' |
27 | ||
28 | _TESTS = [{ | |
d55433bb PH |
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.', | |
746f491f | 35 | }, |
36 | }] |