diff options
author | Tom-Oliver Heidel <github@tom-oliver.eu> | 2020-09-04 02:08:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-04 02:08:23 +0200 |
commit | 42eceaac7d2a32c57c50967fce15920e0370f2b7 (patch) | |
tree | 153251c77a6864850452a34d4e5c865547ce3d55 /youtube_dlc/extractor/soundcloud.py | |
parent | c10f38f887fcd467add6485d2315abd282f6ee35 (diff) | |
parent | 906f980a7533af2ad68861b7b2aa587845848a5e (diff) | |
download | hypervideo-pre-42eceaac7d2a32c57c50967fce15920e0370f2b7.tar.lz hypervideo-pre-42eceaac7d2a32c57c50967fce15920e0370f2b7.tar.xz hypervideo-pre-42eceaac7d2a32c57c50967fce15920e0370f2b7.zip |
Merge pull request #38 from blackjack4494/soundcloud-sets
[soundcloud] sets pattern and tests
Diffstat (limited to 'youtube_dlc/extractor/soundcloud.py')
-rw-r--r-- | youtube_dlc/extractor/soundcloud.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/youtube_dlc/extractor/soundcloud.py b/youtube_dlc/extractor/soundcloud.py index ae3573680..0fe084f5c 100644 --- a/youtube_dlc/extractor/soundcloud.py +++ b/youtube_dlc/extractor/soundcloud.py @@ -600,7 +600,7 @@ class SoundcloudPlaylistBaseIE(SoundcloudIE): 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' _TESTS = [{ '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', '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): |