mirror of
https://github.com/navidrome/navidrome.git
synced 2025-06-08 19:32:16 +03:00
Fixed log message.
This commit is contained in:
parent
edcfd9dd61
commit
2dfa05ceb6
@ -53,8 +53,8 @@ func (s *scrobbler) detectSkipped(playerId int, trackId string) {
|
|||||||
}
|
}
|
||||||
diff := np.Start.Sub(prev.Start)
|
diff := np.Start.Sub(prev.Start)
|
||||||
if diff < minSkipped || diff > maxSkipped {
|
if diff < minSkipped || diff > maxSkipped {
|
||||||
prev = np
|
|
||||||
beego.Debug(fmt.Sprintf("-- Playtime for track %s was %v. Not skipping.", prev.TrackId, diff))
|
beego.Debug(fmt.Sprintf("-- Playtime for track %s was %v. Not skipping.", prev.TrackId, diff))
|
||||||
|
prev = np
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
err = s.itunes.MarkAsSkipped(prev.TrackId, prev.Start.Add(time.Duration(1)*time.Minute))
|
err = s.itunes.MarkAsSkipped(prev.TrackId, prev.Start.Add(time.Duration(1)*time.Minute))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user