🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
Fix nil pointer dereference
Deluan72e92c7318cb
diff --git a/engine/scrobbler.go b/engine/scrobbler.goindex 01253c4e6..f4b697798 100644--- a/engine/scrobbler.go+++ b/engine/scrobbler.go@@ -43,7 +43,11 @@ func (s *scrobbler) Register(ctx context.Context, playerId int, trackId string,return err})- log.Info("Scrobbled", "title", mf.Title, "artist", mf.Artist, "user", userName(ctx))+ if err != nil {+ log.Error("Error while scrobbling", "trackId", trackId, err)+ } else {+ log.Info("Scrobbled", "title", mf.Title, "artist", mf.Artist, "user", userName(ctx))+ }return mf, err}