mirror of
https://github.com/imputnet/cobalt.git
synced 2026-05-22 22:39:42 -05:00
[PR #1497] [MERGED] soundcloud: fix extraction of client_id #13641
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/imputnet/cobalt/pull/1497
Author: @zImPatrick
Created: 1/8/2026
Status: ✅ Merged
Merged: 1/9/2026
Merged by: @wukko
Base:
develop← Head:fix-sc📝 Commits (1)
11b3bbeapi/soundcloud: fix regex & check html for hydrated client_id📊 Changes
1 file changed (+15 additions, -12 deletions)
View changed files
📝
api/src/processing/services/soundcloud.js(+15 -12)📄 Description
SoundCloud seems to have broken on main & develop because the regex for matching the client_id didn't match anything on newer versions anymore. This PR fixes the regex & tries to extract the client_id from hydration data first (before eventually falling back to getting it from the JS files)
The regex for matching the client_id from the hydration data is courtesy of
6d77edd0a0, thanks to @hyperdefined for it🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.