about summary refs log tree commit diff
path: root/tools/mpd-stats/internal
diff options
context:
space:
mode:
Diffstat (limited to 'tools/mpd-stats/internal')
-rw-r--r--tools/mpd-stats/internal/scrobbler/scrobbler.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/mpd-stats/internal/scrobbler/scrobbler.go b/tools/mpd-stats/internal/scrobbler/scrobbler.go
index a31569e..e16458c 100644
--- a/tools/mpd-stats/internal/scrobbler/scrobbler.go
+++ b/tools/mpd-stats/internal/scrobbler/scrobbler.go
@@ -54,13 +54,12 @@ func (s *Scrobbler) Run() error {
 				if err != nil {
 					log.Fatalf("could not create a log: %v", err)
 				}
-				log.Printf("we're playing %s/%s/%s [%s]\n", currentRecord.Artist, currentRecord.Album, currentRecord.Title, currentRecord.Duration)
 				previousRecord = currentRecord
 				s.save(currentRecord)
 				continue
 			}
 
-			if currentRecord.Title != attrs["Title"] || currentRecord.Artist != attrs["Artist"] || currentRecord.Album != attrs["Album"] {
+			if !currentRecord.EqualAttrs(attrs) {
 				currentRecord, err = NewRecord(attrs)
 				if err != nil {
 					log.Fatalf("could not create a log: %v", err)
@@ -68,7 +67,6 @@ func (s *Scrobbler) Run() error {
 			}
 
 			if currentRecord.Id != previousRecord.Id {
-				log.Printf("we're playing %s/%s/%s [%s]\n", currentRecord.Artist, currentRecord.Album, currentRecord.Title, currentRecord.Duration)
 				previousRecord = currentRecord
 				s.save(currentRecord)
 			}