2026-05-14 02:43:49 +02:00
# Bugs
- syncJukeboxIfToken() is always called at startup, even if we have a jukebox already
- "Caveat: If a sync gets past the fetch phase, runs clearAllTables(), then dies while writing some playlists, you could still end up with a partial cache. Fixing that would mean a single Room transaction or a “swap” strategy; say if you want that next."
- "playlists 401" in Playlists Activity should send us back to the Spotify auth screen
- the server should implement some rate limiting / deadman switch / to avoid spamming Spotify API with broken-app API calls
2026-05-14 03:03:17 +02:00
- pairing fails:
- (tag data from mp3 files is there)
- are we missing tracks? (or title/artist on the tracks?)
2026-05-14 02:43:49 +02:00
2026-05-14 12:29:02 +02:00
- resolve duplicate playlist API request upon initial pairing
"""
84.115.228.119 - - [14/May/2026 09:53:30] "GET /playlists/4f4P6ULiHn0oEedTHal2AU HTTP/1.1" 200 -
84.115.228.119 - - [14/May/2026 09:53:31] "GET /playlists/4f4P6ULiHn0oEedTHal2AU HTTP/1.1" 200 -
"""
2026-05-14 02:43:49 +02:00
## Nice-to
2026-05-14 12:29:02 +02:00
- add a test for /playlists/<playlist_id> but obfuscate the IDs and user id
2026-05-14 02:43:49 +02:00
- TrackFileMatching, scoreAgainstLocalHints
- these are very rudimentary heuristics to pairing mp3 files to the playlists. check them again.
- Playlist has empty name, id=0gjOliftUAwV48X6KK9EeP
- in our server-side api, we might want to log such events too
.
- (pairing songs) "Possible race: openTree callback may capture an empty tracks list if the folder was picked before LiveData emitted."
- toast: "no tracks loaded for this playlist yet. [...]"
2026-05-14 03:03:17 +02:00
## Spotify API check
after fetching about 90 playlists, I start to see 429 rate limiting.
ALSO, now, I seem to get this very soon with 429:
(even after logging in again)
"""
84.115.228.119 - - [14/May/2026 00:46:04] "GET /playlists HTTP/1.1" 429 -
84.115.228.119 - - [14/May/2026 00:46:05] "GET /playlists HTTP/1.1" 429 -
84.115.228.119 - - [14/May/2026 00:46:07] "GET /playlists HTTP/1.1" 429 -
84.115.228.119 - - [14/May/2026 00:46:09] "GET /playlists/4f4P6ULiHn0oEedTHal2AU HTTP/1.1" 429 -
84.115.228.119 - - [14/May/2026 00:46:10] "GET /playlists/4f4P6ULiHn0oEedTHal2AU HTTP/1.1" 429 -
84.115.228.119 - - [14/May/2026 00:46:12] "GET /playlists HTTP/1.1" 429 -
84.115.228.119 - - [14/May/2026 00:46:12] "GET /playlists/4f4P6ULiHn0oEedTHal2AU HTTP/1.1" 429 -
84.115.228.119 - - [14/May/2026 00:46:17] "GET /playlists/4f4P6ULiHn0oEedTHal2AU HTTP/1.1" 429 -
84.115.228.119 - - [14/May/2026 00:46:22] "GET /playlists HTTP/1.1" 429 -
84.115.228.119 - - [14/May/2026 00:46:26] "GET /playlists/4f4P6ULiHn0oEedTHal2AU HTTP/1.1" 429 -
"""
---
"""
can we please * avoid * fetching playlist details upon first-run? i.e. only fetch the playlists but not their contents.
*only* fetch playlist details upon clicking a playlist.
"""