[GH-ISSUE #598] support for offline playback #375

Closed
opened 2026-02-27 19:30:17 +03:00 by kerem · 2 comments
Owner

Originally created by @emekoi on GitHub (Feb 10, 2021).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/598

i have seen #152, but what i am asking is would it be possible to add support for playing the encrypted files that an official client has saved for offline playback? i.e. i tell the spotify client to store its data in ~/Spotify and later on tell librespot to play audio using that ~/Spotify? or would that go against the TOS and put librespot at risk? or if not, would using the same folder for 2 separate players, just clobber the data in the folder like the official client does?

Originally created by @emekoi on GitHub (Feb 10, 2021). Original GitHub issue: https://github.com/librespot-org/librespot/issues/598 i have seen #152, but what i am asking is would it be possible to add support for playing the encrypted files that an official client has saved for offline playback? i.e. i tell the spotify client to store its data in `~/Spotify` and later on tell librespot to play audio using that `~/Spotify`? or would that go against the TOS and put librespot at risk? or if not, would using the same folder for 2 separate players, just clobber the data in the folder like the official client does?
kerem 2026-02-27 19:30:17 +03:00
Author
Owner

@devgianlu commented on GitHub (Feb 10, 2021):

I don't believe anyone has reversed how the files are encrypted and stored to disk by the official client.

<!-- gh-comment-id:776886057 --> @devgianlu commented on GitHub (Feb 10, 2021): I don't believe anyone has reversed how the files are encrypted and stored to disk by the official client.
Author
Owner

@emekoi commented on GitHub (Feb 10, 2021):

so the way that files are encrypted on disk is different from how they are sent over the network? or am i mistaken in thinking that Spotify simply sends encrypted audio data to clients, and they cache and decrypt that audio data and play it back? i thought that since the official client's cache and storage directory file structures were superficially similar to the ones librespot generates that they were the same.

that aside, do you think it would be possible for someone with little to no reverse engineering knowledge or experience (me) to reverse how the official client encrypts and stores files to disk? and if i did, would librespot merge such a PR?

<!-- gh-comment-id:777009221 --> @emekoi commented on GitHub (Feb 10, 2021): so the way that files are encrypted on disk is different from how they are sent over the network? or am i mistaken in thinking that Spotify simply sends encrypted audio data to clients, and they cache and decrypt that audio data and play it back? i thought that since the official client's cache and storage directory file structures were superficially similar to the ones librespot generates that they were the same. that aside, do you think it would be possible for someone with little to no reverse engineering knowledge or experience (me) to reverse how the official client encrypts and stores files to disk? and if i did, would librespot merge such a PR?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librespot#375
No description provided.