mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-11 23:39:29 +01:00
[soundcloud] sets pattern and tests
include tests (weekly + charts) weekly with login worked before. but now also public weekly will work. charts and similar patterned sets as well
This commit is contained in:
parent
c10f38f887
commit
906f980a75
@ -600,7 +600,7 @@ def _extract_set(self, playlist, token=None):
|
|||||||
|
|
||||||
|
|
||||||
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 New Issue
Block a user