]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[soundcloud] Support URLs with a slash at the end (Fixes #1104)
authorPhilipp Hagemeister <phihag@phihag.de>
Tue, 23 Jul 2013 16:35:52 +0000 (18:35 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Tue, 23 Jul 2013 16:35:52 +0000 (18:35 +0200)
youtube_dl/extractor/soundcloud.py

index d47c49c03f6e5445e72255e79495baae3a16e115..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',