mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-12-21 23:33:10 +00:00
Merge pull request #38 from blackjack4494/soundcloud-sets
[soundcloud] sets pattern and tests
This commit is contained in:
commit
42eceaac7d
1 changed files with 10 additions and 1 deletions
|
@ -600,7 +600,7 @@ class SoundcloudPlaylistBaseIE(SoundcloudIE):
|
||||||
|
|
||||||
|
|
||||||
class SoundcloudSetIE(SoundcloudPlaylistBaseIE):
|
class SoundcloudSetIE(SoundcloudPlaylistBaseIE):
|
||||||
_VALID_URL = r'https?://(?:(?:www|m)\.)?soundcloud\.com/(?P<uploader>[\w\d-]+)/sets/(?P<slug_title>[\w\d-]+)(?:/(?P<token>[^?/]+))?'
|
_VALID_URL = r'https?://(?:(?:www|m)\.)?soundcloud\.com/(?P<uploader>[\w\d-]+)/sets/(?P<slug_title>[:\w\d-]+)(?:/(?P<token>[^?/]+))?'
|
||||||
IE_NAME = 'soundcloud:set'
|
IE_NAME = 'soundcloud:set'
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
'url': 'https://soundcloud.com/the-concept-band/sets/the-royal-concept-ep',
|
'url': 'https://soundcloud.com/the-concept-band/sets/the-royal-concept-ep',
|
||||||
|
@ -613,6 +613,15 @@ class SoundcloudSetIE(SoundcloudPlaylistBaseIE):
|
||||||
}, {
|
}, {
|
||||||
'url': 'https://soundcloud.com/the-concept-band/sets/the-royal-concept-ep/token',
|
'url': 'https://soundcloud.com/the-concept-band/sets/the-royal-concept-ep/token',
|
||||||
'only_matching': True,
|
'only_matching': True,
|
||||||
|
}, {
|
||||||
|
'url': 'https://soundcloud.com/discover/sets/weekly::flacmatic',
|
||||||
|
'only_matching': True,
|
||||||
|
}, {
|
||||||
|
'url': 'https://soundcloud.com/discover/sets/charts-top:all-music:de',
|
||||||
|
'only_matching': True,
|
||||||
|
}, {
|
||||||
|
'url': 'https://soundcloud.com/discover/sets/charts-top:hiphoprap:kr',
|
||||||
|
'only_matching': True,
|
||||||
}]
|
}]
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
|
|
Loading…
Reference in a new issue