feat: fetch tracks on-demand, logout button

This commit is contained in:
2026-05-14 03:03:17 +02:00
parent e2ab026e84
commit 83e77f3d0c
7 changed files with 92 additions and 2 deletions

34
BUGS.md
View File

@@ -8,6 +8,9 @@
- the server should implement some rate limiting / deadman switch / to avoid spamming Spotify API with broken-app API calls
- pairing fails:
- (tag data from mp3 files is there)
- are we missing tracks? (or title/artist on the tracks?)
## Nice-to
@@ -22,3 +25,34 @@
- toast: "no tracks loaded for this playlist yet. [...]"
## 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.
"""