]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[soundcloud] Fix _VALID_URL clashes with sets (Closes #10505)
authorSergey M․ <dstftw@gmail.com>
Tue, 30 Aug 2016 18:56:15 +0000 (01:56 +0700)
committerSergey M․ <dstftw@gmail.com>
Tue, 30 Aug 2016 18:56:15 +0000 (01:56 +0700)
youtube_dl/extractor/soundcloud.py

index aeae931a20774ff9bc5c3988273a0d008e293954..9635c2b495e6744398051daaadd134b4707ec815 100644 (file)
@@ -32,7 +32,7 @@ class SoundcloudIE(InfoExtractor):
     _VALID_URL = r'''(?x)^(?:https?://)?
                     (?:(?:(?:www\.|m\.)?soundcloud\.com/
                             (?P<uploader>[\w\d-]+)/
-                            (?!(?:tracks|sets(?:/[^/?#]+)?|reposts|likes|spotlight)/?(?:$|[?#]))
+                            (?!(?:tracks|sets(?:/.+?)?|reposts|likes|spotlight)/?(?:$|[?#]))
                             (?P<title>[\w\d-]+)/?
                             (?P<token>[^?]+?)?(?:[?].*)?$)
                        |(?:api\.soundcloud\.com/tracks/(?P<track_id>\d+)
@@ -265,6 +265,9 @@ class SoundcloudSetIE(SoundcloudIE):
             'title': 'The Royal Concept EP',
         },
         'playlist_mincount': 6,
+    }, {
+        'url': 'https://soundcloud.com/the-concept-band/sets/the-royal-concept-ep/token',
+        'only_matching': True,
     }]
 
     def _real_extract(self, url):