]> gitweb @ CieloNegro.org - youtube-dl.git/blobdiff - youtube_dl/extractor/soundcloud.py
[soundcloud] Support URLs with a slash at the end (Fixes #1104)
[youtube-dl.git] / youtube_dl / extractor / soundcloud.py
index 9f81fa87ac2ca0258f6412bc31f12ca71c815b89..8b8b5166d134ee7e8b2538f2f7fccec4ca9d4072 100644 (file)
@@ -19,7 +19,7 @@ class SoundcloudIE(InfoExtractor):
        of the stream token and uid
      """
 
-    _VALID_URL = r'^(?:https?://)?(?:www\.)?soundcloud\.com/([\w\d-]+)/([\w\d-]+)'
+    _VALID_URL = r'^(?:https?://)?(?:www\.)?soundcloud\.com/([\w\d-]+)/([\w\d-]+)/?(?:[?].*)?$'
     IE_NAME = u'soundcloud'
     _TEST = {
         u'url': u'http://soundcloud.com/ethmusic/lostin-powers-she-so-heavy',
@@ -86,7 +86,7 @@ class SoundcloudSetIE(InfoExtractor):
        of the stream token and uid
      """
 
-    _VALID_URL = r'^(?:https?://)?(?:www\.)?soundcloud\.com/([\w\d-]+)/sets/([\w\d-]+)'
+    _VALID_URL = r'^(?:https?://)?(?:www\.)?soundcloud\.com/([\w\d-]+)/sets/([\w\d-]+)(?:[?].*)?$'
     IE_NAME = u'soundcloud:set'
     _TEST = {
         u"url":"https://soundcloud.com/the-concept-band/sets/the-royal-concept-ep",