You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.3 KiB
Python
37 lines
1.3 KiB
Python
11 years ago
|
from __future__ import unicode_literals
|
||
11 years ago
|
|
||
11 years ago
|
from .mtv import MTVServicesInfoExtractor
|
||
11 years ago
|
|
||
|
|
||
10 years ago
|
class SouthParkIE(MTVServicesInfoExtractor):
|
||
|
IE_NAME = 'southpark.cc.com'
|
||
|
_VALID_URL = r'https?://(www\.)?(?P<url>southpark\.cc\.com/(clips|full-episodes)/(?P<id>.+?)(\?|#|$))'
|
||
11 years ago
|
|
||
|
_FEED_URL = 'http://www.southparkstudios.com/feeds/video-player/mrss'
|
||
|
|
||
11 years ago
|
_TESTS = [{
|
||
10 years ago
|
'url': 'http://southpark.cc.com/clips/104437/bat-daded#tab=featured',
|
||
11 years ago
|
'info_dict': {
|
||
|
'id': 'a7bff6c2-ed00-11e0-aca6-0026b9414f30',
|
||
|
'ext': 'mp4',
|
||
10 years ago
|
'title': 'South Park|Bat Daded',
|
||
11 years ago
|
'description': 'Randy disqualifies South Park by getting into a fight with Bat Dad.',
|
||
11 years ago
|
},
|
||
11 years ago
|
}]
|
||
11 years ago
|
|
||
11 years ago
|
|
||
10 years ago
|
class SouthparkDeIE(SouthParkIE):
|
||
11 years ago
|
IE_NAME = 'southpark.de'
|
||
|
_VALID_URL = r'https?://(www\.)?(?P<url>southpark\.de/(clips|alle-episoden)/(?P<id>.+?)(\?|#|$))'
|
||
11 years ago
|
_FEED_URL = 'http://www.southpark.de/feeds/video-player/mrss/'
|
||
|
|
||
|
_TESTS = [{
|
||
11 years ago
|
'url': 'http://www.southpark.de/clips/uygssh/the-government-wont-respect-my-privacy#tab=featured',
|
||
|
'info_dict': {
|
||
|
'id': '85487c96-b3b9-4e39-9127-ad88583d9bf2',
|
||
|
'ext': 'mp4',
|
||
|
'title': 'The Government Won\'t Respect My Privacy',
|
||
|
'description': 'Cartman explains the benefits of "Shitter" to Stan, Kyle and Craig.',
|
||
11 years ago
|
},
|
||
|
}]
|