aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUnknown <blackjack4494@web.de>2020-10-13 00:47:17 +0200
committerUnknown <blackjack4494@web.de>2020-10-13 00:47:17 +0200
commitbc887cdd01f9ffe14c9bb966194e3c8535d8de92 (patch)
tree26d1b4e233d3918c1575f11db56137ab6bdd2413
parent320724f964f09a5e1f08edd246464db4f0d297f9 (diff)
downloadhypervideo-pre-bc887cdd01f9ffe14c9bb966194e3c8535d8de92.tar.lz
hypervideo-pre-bc887cdd01f9ffe14c9bb966194e3c8535d8de92.tar.xz
hypervideo-pre-bc887cdd01f9ffe14c9bb966194e3c8535d8de92.zip
[SouthparkDE] regex and tests
-rw-r--r--youtube_dlc/extractor/southpark.py32
1 files changed, 6 insertions, 26 deletions
diff --git a/youtube_dlc/extractor/southpark.py b/youtube_dlc/extractor/southpark.py
index 24209c36c..20ae7c5e7 100644
--- a/youtube_dlc/extractor/southpark.py
+++ b/youtube_dlc/extractor/southpark.py
@@ -44,37 +44,17 @@ class SouthParkEsIE(SouthParkIE):
class SouthParkDeIE(SouthParkIE):
IE_NAME = 'southpark.de'
- _VALID_URL = r'https?://(?:www\.)?(?P<url>southpark\.de/(?:clips|alle-episoden|collections|folgen)/(?P<id>(?P<unique_id>.+?)/.+?)(?:\?|#|$))'
+ _VALID_URL = r'https?://(?:www\.)?(?P<url>southpark\.de/(?:videoclip|collections|folgen)/(?P<id>(?P<unique_id>.+?)/.+?)(?:\?|#|$))'
# _FEED_URL = 'http://feeds.mtvnservices.com/od/feed/intl-mrss-player-feed'
_TESTS = [{
- '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': 'South Park|The Government Won\'t Respect My Privacy',
- 'description': 'Cartman explains the benefits of "Shitter" to Stan, Kyle and Craig.',
- 'timestamp': 1380160800,
- 'upload_date': '20130926',
- },
- }, {
- # non-ASCII characters in initial URL
- 'url': 'http://www.southpark.de/alle-episoden/s18e09-hashtag-aufwärmen',
- 'info_dict': {
- 'title': 'Hashtag „Aufwärmen“',
- 'description': 'Kyle will mit seinem kleinen Bruder Ike Videospiele spielen. Als der nicht mehr mit ihm spielen will, hat Kyle Angst, dass er die Kids von heute nicht mehr versteht.',
- },
- 'playlist_count': 3,
+ 'url': 'https://www.southpark.de/videoclip/rsribv/south-park-rueckzug-zum-gummibonbon-wald',
+ 'only_matching': True,
}, {
- # non-ASCII characters in redirect URL
- 'url': 'http://www.southpark.de/alle-episoden/s18e09',
- 'info_dict': {
- 'title': 'Hashtag „Aufwärmen“',
- 'description': 'Kyle will mit seinem kleinen Bruder Ike Videospiele spielen. Als der nicht mehr mit ihm spielen will, hat Kyle Angst, dass er die Kids von heute nicht mehr versteht.',
- },
- 'playlist_count': 3,
+ 'url': 'https://www.southpark.de/folgen/jiru42/south-park-verkabelung-staffel-23-ep-9',
+ 'only_matching': True,
}, {
- 'url': 'http://www.southpark.de/collections/2476/superhero-showdown/1',
+ 'url': 'https://www.southpark.de/collections/zzno5a/south-park-good-eats/7q26gp',
'only_matching': True,
}]