[soundcloud] Improve _VALID_URL
authorSergey M․ <dstftw@gmail.com>
Wed, 24 Jun 2015 14:48:57 +0000 (20:48 +0600)
committerSergey M․ <dstftw@gmail.com>
Wed, 24 Jun 2015 14:48:57 +0000 (20:48 +0600)
Do not takeover soundcloud:user URLs

youtube_dl/extractor/soundcloud.py

index c23c5ee0fb853f86e4662ad574b587610456159c..e31b4596a31192bf5dcf5b367d7f8713e0f7c50e 100644 (file)
@@ -29,7 +29,7 @@ class SoundcloudIE(InfoExtractor):
     _VALID_URL = r'''(?x)^(?:https?://)?
                     (?:(?:(?:www\.|m\.)?soundcloud\.com/
                             (?P<uploader>[\w\d-]+)/
-                            (?!sets/|likes/?(?:$|[?#]))
+                            (?!sets/|(?:likes|tracks)/?(?:$|[?#]))
                             (?P<title>[\w\d-]+)/?
                             (?P<token>[^?]+?)?(?:[?].*)?$)
                        |(?:api\.soundcloud\.com/tracks/(?P<track_id>\d+)