[GH-ISSUE #273] Can't download from Soundcloud if no opus audio is available #11457

Closed
opened 2026-05-08 06:46:24 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @resucutie on GitHub (Dec 13, 2023).
Original GitHub issue: https://github.com/imputnet/cobalt/issues/273

Cobalt only thinks a Soundcloud music is valid if it includes a dash in its URL. For example: Downloading the music Credits, which has the url https://soundcloud.com/frums/credits, that does not include a dash, will not download. But downloading its extended version, which includes a dash in its URL (https://soundcloud.com/frums/credits-ex), will download

Originally created by @resucutie on GitHub (Dec 13, 2023). Original GitHub issue: https://github.com/imputnet/cobalt/issues/273 Cobalt only thinks a Soundcloud music is valid if it includes a dash in its URL. For example: Downloading the music [Credits](https://soundcloud.com/frums/credits), which has the url `https://soundcloud.com/frums/credits`, that does not include a dash, will not download. But downloading its [extended version](https://soundcloud.com/frums/credits-ex), which includes a dash in its URL (`https://soundcloud.com/frums/credits-ex`), will download
GiteaMirror added the bugcan reproduce labels 2026-05-08 06:46:24 -05:00
Author
Owner

@hllhnd commented on GitHub (Dec 21, 2023):

From my testing, it seems it has nothing to do with hyphens in the song name. I tried a different song without a hyphen from the same artist and it downloads fine.

Instead, it seems that Soundcloud is outright not providing an Opus transcoding for this specific song, which Cobalt does not account for.

It seems the obvious fix is using the mp3 encoding as a fallback, but I don't know if this would pose an issue. Would this fix cause any issues @wukko?

<!-- gh-comment-id:1865392053 --> @hllhnd commented on GitHub (Dec 21, 2023): From my testing, it seems it has nothing to do with hyphens in the song name. I tried [a different song without a hyphen from the same artist](https://soundcloud.com/frums/hall) and it downloads fine. Instead, it seems that Soundcloud is outright not providing an Opus transcoding *for this specific song*, which Cobalt [does not account for](https://github.com/wukko/cobalt/blob/0014c8b9fb63d02f0510acc7c6e26cbc4efb97d6/src/modules/processing/services/soundcloud.js#L62). It seems the obvious fix is using the mp3 encoding as a fallback, but I don't know if this would pose an issue. Would this fix cause any issues @wukko?
Author
Owner

@wukko commented on GitHub (Dec 21, 2023):

this fix wouldn't cause any issues, i assumed soundcloud provides opus for all songs, but apparently not lol

<!-- gh-comment-id:1865434185 --> @wukko commented on GitHub (Dec 21, 2023): this fix wouldn't cause any issues, i assumed soundcloud provides opus for all songs, but apparently not lol
Sign in to join this conversation.