mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-11-02 07:35:13 +00:00
[ie/soundcloud] Support new API URLs (#14449)
Closes #14443 Authored by: seproDev
This commit is contained in:
@@ -438,7 +438,7 @@ class SoundcloudIE(SoundcloudBaseIE):
|
|||||||
(?P<title>[\w\d-]+)
|
(?P<title>[\w\d-]+)
|
||||||
(?:/(?P<token>(?!(?:albums|sets|recommended))[^?]+?))?
|
(?:/(?P<token>(?!(?:albums|sets|recommended))[^?]+?))?
|
||||||
(?:[?].*)?$)
|
(?:[?].*)?$)
|
||||||
|(?:api(?:-v2)?\.soundcloud\.com/tracks/(?P<track_id>\d+)
|
|(?:api(?:-v2)?\.soundcloud\.com/tracks/(?:soundcloud%3Atracks%3A)?(?P<track_id>\d+)
|
||||||
(?:/?\?secret_token=(?P<secret_token>[^&]+))?)
|
(?:/?\?secret_token=(?P<secret_token>[^&]+))?)
|
||||||
)
|
)
|
||||||
'''
|
'''
|
||||||
@@ -692,6 +692,9 @@ class SoundcloudIE(SoundcloudBaseIE):
|
|||||||
# Go+ (account with active subscription needed)
|
# Go+ (account with active subscription needed)
|
||||||
'url': 'https://soundcloud.com/taylorswiftofficial/look-what-you-made-me-do',
|
'url': 'https://soundcloud.com/taylorswiftofficial/look-what-you-made-me-do',
|
||||||
'only_matching': True,
|
'only_matching': True,
|
||||||
|
}, {
|
||||||
|
'url': 'https://api.soundcloud.com/tracks/soundcloud%3Atracks%3A1083788353',
|
||||||
|
'only_matching': True,
|
||||||
}]
|
}]
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
|
|||||||
Reference in New Issue
Block a user