[southparkdk] Add extractor
authorrrooij <rderooij685@gmail.com>
Mon, 11 May 2015 16:02:25 +0000 (18:02 +0200)
committerSergey M․ <dstftw@gmail.com>
Mon, 11 May 2015 17:45:38 +0000 (23:45 +0600)
youtube_dl/extractor/__init__.py
youtube_dl/extractor/southpark.py

index 3368edf7cb97c3b4bb4c0f7d3b1a59344a40f2a3..de19dfd7a8cfe1b2f08b8099087fd0301df384c9 100644 (file)
@@ -490,6 +490,7 @@ from .soundgasm import (
 from .southpark import (
     SouthParkIE,
     SouthParkDeIE,
+    SouthParkDkIE,
     SouthParkEsIE,
     SouthParkNlIE
 )
index 59e31198cd08b24af12c8a9175ad3a89a1e53eb8..83e5a765934d84ae65fbfca74ac8fea6daf201de 100644 (file)
@@ -57,3 +57,13 @@ class SouthParkNlIE(SouthParkIE):
         'url': 'http://www.southpark.nl/full-episodes/s18e06-freemium-isnt-free',
         'playlist_count': 4,
     }]
+
+class SouthParkDkIE(SouthParkIE):
+    IE_NAME = 'southpark.dk'
+    _VALID_URL = r'https?://(?:www\.)?(?P<url>southparkstudios\.dk/(?:clips|full-episodes)/(?P<id>.+?)(\?|#|$))'
+    _FEED_URL = 'http://www.southparkstudios.dk/feeds/video-player/mrss/'
+
+    _TESTS = [{
+        'url': 'http://www.southparkstudios.dk/full-episodes/s18e07-grounded-vindaloop',
+        'playlist_count': 4,
+    }]