From 8af7dab23deab90ff5d1748bb8a178850cbdf373 Mon Sep 17 00:00:00 2001 From: Deluan Date: Tue, 22 Jun 2021 17:16:34 -0400 Subject: [PATCH] Fix wrong warning about ignored NowPlaying --- core/agents/lastfm/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/agents/lastfm/client.go b/core/agents/lastfm/client.go index cf7534da3..22f699271 100644 --- a/core/agents/lastfm/client.go +++ b/core/agents/lastfm/client.go @@ -133,7 +133,7 @@ func (c *Client) UpdateNowPlaying(ctx context.Context, sessionKey string, info S if err != nil { return err } - if resp.NowPlaying.IgnoredMessage.Code != "" { + if resp.NowPlaying.IgnoredMessage.Code != "0" { log.Warn(ctx, "LastFM: NowPlaying was ignored", "code", resp.NowPlaying.IgnoredMessage.Code, "text", resp.NowPlaying.IgnoredMessage.Text) }