]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[southparknl] Add extractor for southpark.nl
authorrrooij <rderooij685@gmail.com>
Tue, 5 May 2015 06:59:09 +0000 (08:59 +0200)
committerrrooij <rderooij685@gmail.com>
Tue, 5 May 2015 06:59:09 +0000 (08:59 +0200)
youtube_dl/extractor/__init__.py
youtube_dl/extractor/southpark.py

index 1c3a46dd8d4df33a0d1caab691117c4104493be0..b042e9215c07627882ce80a0d2b963db35090375 100644 (file)
@@ -485,6 +485,7 @@ from .southpark import (
     SouthParkIE,
     SouthParkEsIE,
     SouthparkDeIE,
+    SouthParkNlIE
 )
 from .space import SpaceIE
 from .spankbang import SpankBangIE
index e3b73295c1a8e77f7cd4664ae5a8eadf1d60702f..ebcd2ed0447997f556d985819d93e2ffc2dfa9c6 100644 (file)
@@ -46,3 +46,18 @@ class SouthparkDeIE(SouthParkIE):
             'description': 'Cartman explains the benefits of "Shitter" to Stan, Kyle and Craig.',
         },
     }]
+
+
+class SouthParkNlIE(SouthParkIE):
+    IE_NAME = 'southpark.nl'
+    _VALID_URL = r'https?://(?:www\.)?(?P<url>southpark\.nl/(?:clips|full-episodes)/(?P<id>.+?)(\?|#|$))'
+    _FEED_URL = 'http://www.southpark.nl/feeds/video-player/mrss/'
+
+    _TESTS = [{
+        'url': 'http://www.southpark.nl/full-episodes/s18e06-freemium-isnt-free',
+        'info_dict': {
+            'id': 'c56b9a1f-0e42-4942-89e0-8e721d814c5c',
+            'ext': 'mp4',
+            'title': 'South Park 1806: Freemium Isn\'t Free - Act 3',
+        },
+    }]