mirror of
https://github.com/riwiwa/muzi.git
synced 2026-02-28 11:56:57 -08:00
finish lastfm endpoint and fix clearing spotify now playing status
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user