[soundcloud] Fix non-secret playlists

This commit is contained in:
Philipp Hagemeister 2014-09-18 18:57:04 +02:00
parent 37bfe8ace4
commit 46f74bcf5c

View file

@ -338,20 +338,17 @@ class SoundcloudUserIE(SoundcloudIE):
class SoundcloudPlaylistIE(SoundcloudIE): class SoundcloudPlaylistIE(SoundcloudIE):
_VALID_URL = r'https?://api\.soundcloud\.com/playlists/(?P<id>[0-9]+)(?:/?\?secret_token=(?P<token>[^&]+?))$' _VALID_URL = r'https?://api\.soundcloud\.com/playlists/(?P<id>[0-9]+)(?:/?\?secret_token=(?P<token>[^&]+?))?$'
IE_NAME = 'soundcloud:playlist' IE_NAME = 'soundcloud:playlist'
_TESTS = [ _TESTS = [{
'url': 'http://api.soundcloud.com/playlists/4110309',
{ 'info_dict': {
'url': 'http://api.soundcloud.com/playlists/4110309', 'id': '4110309',
'info_dict': { 'title': 'TILT Brass - Bowery Poetry Club, August \'03 [Non-Site SCR 02]',
'id': '4110309', 'description': 're:.*?TILT Brass - Bowery Poetry Club',
'title': 'TILT Brass - Bowery Poetry Club, August \'03 [Non-Site SCR 02]', },
'description': 're:.*?TILT Brass - Bowery Poetry Club', 'playlist_count': 6,
}, }]
'playlist_count': 6,
}
]
def _real_extract(self, url): def _real_extract(self, url):
mobj = re.match(self._VALID_URL, url) mobj = re.match(self._VALID_URL, url)