Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion scdl/scdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,8 @@ def validate_url(client: SoundCloud, url: str) -> str:
# see if link redirects to soundcloud.com
try:
resp = requests.get(url)
if url.startswith(("https://soundcloud.com", "http://soundcloud.com")):
if url.startswith(("https://soundcloud.com", "http://soundcloud.com",
"https://on.soundcloud.com", "http://on.soundcloud.com")):
return urllib.parse.urljoin(resp.url, urllib.parse.urlparse(resp.url).path)
except Exception:
# see if given a username instead of url
Expand Down