]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[soundcloud] Fix non-secret playlists
authorPhilipp Hagemeister <phihag@phihag.de>
Thu, 18 Sep 2014 16:57:04 +0000 (18:57 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Thu, 18 Sep 2014 16:57:04 +0000 (18:57 +0200)
youtube_dl/extractor/soundcloud.py

index 2bed3c35094dc6482420b5ea9c0b709729964270..4719ba45c5f754338f11da9a038c506ad001023c 100644 (file)
@@ -338,20 +338,17 @@ class SoundcloudUserIE(SoundcloudIE):
 
 
 class SoundcloudPlaylistIE(SoundcloudIE):
-    _VALID_URL = r'https?://api\.soundcloud\.com/playlists/(?P<id>[0-9]+)(?:/?\?secret_token=(?P<token>[^&]+?))$'
+    _VALID_URL = r'https?://api\.soundcloud\.com/playlists/(?P<id>[0-9]+)(?:/?\?secret_token=(?P<token>[^&]+?))?$'
     IE_NAME = 'soundcloud:playlist'
-    _TESTS = [
-
-        {
-            'url': 'http://api.soundcloud.com/playlists/4110309',
-            'info_dict': {
-                'id': '4110309',
-                'title': 'TILT Brass - Bowery Poetry Club, August \'03 [Non-Site SCR 02]',
-                'description': 're:.*?TILT Brass - Bowery Poetry Club',
-            },
-            'playlist_count': 6,
-        }
-    ]
+    _TESTS = [{
+        'url': 'http://api.soundcloud.com/playlists/4110309',
+        'info_dict': {
+            'id': '4110309',
+            'title': 'TILT Brass - Bowery Poetry Club, August \'03 [Non-Site SCR 02]',
+            'description': 're:.*?TILT Brass - Bowery Poetry Club',
+        },
+        'playlist_count': 6,
+    }]
 
     def _real_extract(self, url):
         mobj = re.match(self._VALID_URL, url)