Skip to content

Commit

Permalink
[southpark] Fix extraction and add support for southparkstudios.com (c…
Browse files Browse the repository at this point in the history
…loses #26763, closes #28413)
  • Loading branch information
dstftw committed Mar 14, 2021
1 parent 6084512 commit 1860d0f
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions youtube_dl/extractor/southpark.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

class SouthParkIE(MTVServicesInfoExtractor):
IE_NAME = 'southpark.cc.com'
_VALID_URL = r'https?://(?:www\.)?(?P<url>southpark\.cc\.com/(?:clips|(?:full-)?episodes|collections)/(?P<id>.+?)(\?|#|$))'
_VALID_URL = r'https?://(?:www\.)?(?P<url>southpark(?:\.cc|studios)\.com/(?:clips|(?:full-)?episodes|collections)/(?P<id>.+?)(\?|#|$))'

_FEED_URL = 'http://www.southparkstudios.com/feeds/video-player/mrss'
_FEED_URL = 'http://feeds.mtvnservices.com/od/feed/intl-mrss-player-feed'

_TESTS = [{
'url': 'http://southpark.cc.com/clips/104437/bat-daded#tab=featured',
Expand All @@ -23,8 +23,20 @@ class SouthParkIE(MTVServicesInfoExtractor):
}, {
'url': 'http://southpark.cc.com/collections/7758/fan-favorites/1',
'only_matching': True,
}, {
'url': 'https://www.southparkstudios.com/episodes/h4o269/south-park-stunning-and-brave-season-19-ep-1',
'only_matching': True,
}]

def _get_feed_query(self, uri):
return {
'accountOverride': 'intl.mtvi.com',
'arcEp': 'shared.southpark.global',
'ep': '90877963',
'imageEp': 'shared.southpark.global',
'mgid': uri,
}


class SouthParkEsIE(SouthParkIE):
IE_NAME = 'southpark.cc.com:español'
Expand Down

0 comments on commit 1860d0f

Please sign in to comment.