finish lastfm endpoint and fix clearing spotify now playing status

This commit is contained in:
2026-02-28 02:50:54 -08:00
parent 1af3efd7b4
commit 78712188d2
4 changed files with 157 additions and 61 deletions

View File

@@ -297,7 +297,7 @@ func checkCurrentlyPlaying(userId int, accessToken string) error {
defer resp.Body.Close()
if resp.StatusCode == 204 {
ClearNowPlaying(userId)
ClearNowPlayingPlatform(userId, "spotify")
return nil
}
@@ -311,7 +311,7 @@ func checkCurrentlyPlaying(userId int, accessToken string) error {
}
if !playing.IsPlaying || playing.Item.Name == "" {
ClearNowPlaying(userId)
ClearNowPlayingPlatform(userId, "spotify")
return nil
}