mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #680] [Issue]: Game Mode Spotify playlist source broken end-to-end on Development Mode apps (post-2026-03 API migration) #321
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#321
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
Originally created by @Romuromylus on GitHub (May 11, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/680
Summary
After Spotify's 2026-03 Web API migration, the
/playlists/{id}/tracksendpoint is no longer accessible to Spotify Developer apps in Development Mode (without Extended Quota Mode approval). This breaks Marinara's Game Mode "playlist" source completely: every playlist 403s during scene-music shortlist building, and even the dropdown that lists playlists for selection shows misleading "(0)" track counts for every entry because Spotify also strips thetracks.totalfield from/me/playlistsitems.Expected behavior
For users on Development Mode apps:
Actual behavior
packages/server/src/services/spotify/game-spotify-music.service.ts→fetchSpotifyTrackIndexcallsGET /playlists/{id}/tracks. Spotify returns 403 Forbidden for every playlist, including ones owned by the connected user. The error surfaces as:Spotify scene music failed.(or via #659's fix,Spotify track index failed (403): Forbidden).packages/server/src/routes/spotify-auth.routes.ts→/playlistsreadsplaylist.tracks?.totalfromGET /me/playlists. Spotify omits thetracksfield entirely from each item under Development Mode. Every playlist therefore renders asPlaylist Name (0)inChatSettingsDrawerandGameSetupWizard.Steps to reproduce
playlist.(0).Verified empirically against the Spotify Web API with a Dev Mode app:
GET /meGET /me/tracks(Liked Songs)GET /me/playliststracksfield entirelyGET /playlists/{id}tracksfieldGET /playlists/{id}/tracksGET /playlists/{id}/items(owned by me)GET /playlists/{id}/items(followed)Environment
e07aee6)Logs, screenshots, or video
Direct Spotify Web API trace (token from the connected DJ agent):
Note that
/itemsputs the playable underitem.item(because an item may be a track or an episode), not underitem.tracklike the deprecated/tracksendpoint did — so any mapper migrating to/itemsmust coalesce both shapes for/me/trackscompatibility.Additional context
playGameSpotifyTrackcovering the "no active device" path is already merged. This issue is the remaining half of the same end-to-end break for users on Dev Mode apps.Template check