Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Soundcloud] Remove DRM-protected and downloadable formats extraction #1269

Merged
merged 2 commits into from
Feb 3, 2025

Conversation

AudricV
Copy link
Member

@AudricV AudricV commented Jan 30, 2025

This PR removes some of SoundCloud tracks. DRM-protected streams have been added to some tracks, mostly from major music companies. As we do not support DRM streams in the extractor, they shouldn't be extracted so this PR removes them.

Downloading formats used to work anonymously, but Soundcloud restricted it to logged-in users. While it was a UI-only change, this affects the corresponding internal API endpoint for a few months, so there is no point to make a request that will always return a HTTP 401 response.

Loading affected tracks will now be faster as there is no additional request made to get URL for these streams.

The service started to use for a while to send a track_authorization property returned in the track info (at least on mobile and desktop websites), this PR makes the extractor do so too. It isn't required for now, but it may become mandatory at some point in the future.

Duplicate MP3 formats in progressive and HLS delivery methods were not allowed to be returned since cbacd3c. As the extractor now completely supports them, it should return everything that is available to it.

The corresponding stream tests affected by these changes, in SoundcloudStreamExtractorTest, have been updated.

DRM-protected streams have been added to some tracks, mostly from
major music companies. We do not support DRM streams in the extractor,
so they shouldn't be extracted and so waste time, energy and resources.

Extracting downloadable format requires login for a pretty long time,
so there is no point again to do requests to extract this stream to get
an unauthorized response.

Also send the track_authorization property returned in the track info,
like the website does and allow duplicate MP3 formats in progressive and
HLS delivery methods to be returned.
@AudricV AudricV added bug Issue is related to a bug soundcloud service, https://soundcloud.com/ labels Jan 30, 2025
@Stypox Stypox merged commit 186e32c into TeamNewPipe:dev Feb 3, 2025
3 of 4 checks passed
@AudricV AudricV deleted the snd_no_drm_streams branch February 4, 2025 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is related to a bug soundcloud service, https://soundcloud.com/
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants