[PR #136] [CLOSED] Added Support for Local Files #439

Closed
opened 2026-02-28 14:33:01 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jpochyla/psst/pull/136
Author: @braydnm
Created: 8/22/2021
Status: Closed

Base: masterHead: localfiles


📝 Commits (4)

  • 45494fe Added Support for Local Files
  • 213597c Clean Up Local Files Support
  • 67e1524 gui: Polish the LocalTrackManager a bit more
  • 4f611f2 Merge branch 'master' into localfiles

📊 Changes

9 files changed (+452 additions, -16 deletions)

View changed files

📝 psst-core/src/connection/mod.rs (+3 -3)
📝 psst-gui/src/data/config.rs (+12 -2)
📝 psst-gui/src/data/mod.rs (+2 -2)
📝 psst-gui/src/data/track.rs (+2 -0)
📝 psst-gui/src/main.rs (+3 -1)
📝 psst-gui/src/ui/preferences.rs (+6 -1)
📝 psst-gui/src/webapi/client.rs (+26 -7)
psst-gui/src/webapi/local.rs (+396 -0)
📝 psst-gui/src/webapi/mod.rs (+2 -0)

📄 Description

Parsing of the Spotify configuration for local files and the JSON returned by the web API.

Changes

Local files imported by Spotify is stored in a custom binary format at <Spotify Config Dir>/Users/<username>-user/local-files.bnk. When playlist tracks are attempted to be loaded instead of discarding any local tracks attempt to find a local track in the local-files.bnk and if a matching title, artist, album, etc. are found then return a properly formatted Track structure

TODO:

  1. Test on platforms other than Linux
  2. Attempting to play a local files throws unimplemented
  3. Figure out how to decode and play formats other than Vorbis
  4. Continue reverse engineering the local-files.bnk so that local files can be added through Psst
  5. Maybe look into syncing local files with other devices on the network?

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jpochyla/psst/pull/136 **Author:** [@braydnm](https://github.com/braydnm) **Created:** 8/22/2021 **Status:** ❌ Closed **Base:** `master` ← **Head:** `localfiles` --- ### 📝 Commits (4) - [`45494fe`](https://github.com/jpochyla/psst/commit/45494fe17698ebc9998e2368c0368ac63c7492b1) Added Support for Local Files - [`213597c`](https://github.com/jpochyla/psst/commit/213597c92d161c14ef7fe60bd333183244cae7c3) Clean Up Local Files Support - [`67e1524`](https://github.com/jpochyla/psst/commit/67e1524606568deb84f1e73fed88f5e9170e0f58) gui: Polish the LocalTrackManager a bit more - [`4f611f2`](https://github.com/jpochyla/psst/commit/4f611f2d5a245ea636a7cdf57cd1e7bddf9a420d) Merge branch 'master' into localfiles ### 📊 Changes **9 files changed** (+452 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `psst-core/src/connection/mod.rs` (+3 -3) 📝 `psst-gui/src/data/config.rs` (+12 -2) 📝 `psst-gui/src/data/mod.rs` (+2 -2) 📝 `psst-gui/src/data/track.rs` (+2 -0) 📝 `psst-gui/src/main.rs` (+3 -1) 📝 `psst-gui/src/ui/preferences.rs` (+6 -1) 📝 `psst-gui/src/webapi/client.rs` (+26 -7) ➕ `psst-gui/src/webapi/local.rs` (+396 -0) 📝 `psst-gui/src/webapi/mod.rs` (+2 -0) </details> ### 📄 Description Parsing of the Spotify configuration for local files and the JSON returned by the web API. ## Changes Local files imported by Spotify is stored in a custom binary format at `<Spotify` Config `Dir>/Users/<username>-user/local-files.bnk`. When playlist tracks are attempted to be loaded instead of discarding any local tracks attempt to find a local track in the `local-files.bnk` and if a matching title, artist, album, etc. are found then return a properly formatted Track structure ## TODO: 1. Test on platforms other than Linux 2. Attempting to play a local files throws unimplemented 3. Figure out how to decode and play formats other than Vorbis 4. Continue reverse engineering the local-files.bnk so that local files can be added through Psst 5. Maybe look into syncing local files with other devices on the network? --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 14:33:01 +03:00
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/psst#439
No description provided.