[soundcloud] Do not match sets (Fixes #1930)
This commit is contained in:
parent
caefb1de87
commit
4ff50ef846
@ -110,6 +110,9 @@ class TestAllURLsMatching(unittest.TestCase):
|
|||||||
self.assertMatch('http://vimeo.com/channels/tributes', ['vimeo:channel'])
|
self.assertMatch('http://vimeo.com/channels/tributes', ['vimeo:channel'])
|
||||||
self.assertMatch('http://vimeo.com/user7108434', ['vimeo:user'])
|
self.assertMatch('http://vimeo.com/user7108434', ['vimeo:user'])
|
||||||
|
|
||||||
|
# https://github.com/rg3/youtube-dl/issues/1930
|
||||||
|
def test_soundcloud_not_matching_sets(self):
|
||||||
|
self.assertMatch('http://soundcloud.com/floex/sets/gone-ep', ['soundcloud:set'])
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
@ -25,7 +25,8 @@ class SoundcloudIE(InfoExtractor):
|
|||||||
|
|
||||||
_VALID_URL = r'''^(?:https?://)?
|
_VALID_URL = r'''^(?:https?://)?
|
||||||
(?:(?:(?:www\.)?soundcloud\.com/
|
(?:(?:(?:www\.)?soundcloud\.com/
|
||||||
(?P<uploader>[\w\d-]+)/(?P<title>[\w\d-]+)/?
|
(?P<uploader>[\w\d-]+)/
|
||||||
|
(?!sets/)(?P<title>[\w\d-]+)/?
|
||||||
(?P<token>[^?]+?)?(?:[?].*)?$)
|
(?P<token>[^?]+?)?(?:[?].*)?$)
|
||||||
|(?:api\.soundcloud\.com/tracks/(?P<track_id>\d+))
|
|(?:api\.soundcloud\.com/tracks/(?P<track_id>\d+))
|
||||||
|(?P<widget>w\.soundcloud\.com/player/?.*?url=.*)
|
|(?P<widget>w\.soundcloud\.com/player/?.*?url=.*)
|
||||||
|
Loading…
Reference in New Issue
Block a user