Polishing

This commit is contained in:
Deluan
2016-04-21 10:44:27 -04:00
parent 5b9b430825
commit 60bc1d7a11
5 changed files with 18 additions and 18 deletions
+3 -3
View File
@@ -11,8 +11,8 @@ import (
)
const (
minSkipped = time.Duration(3) * time.Second
maxSkipped = time.Duration(10) * time.Second
minSkipped = 3 * time.Second
maxSkipped = 20 * time.Second
)
type Scrobbler interface {
@@ -57,7 +57,7 @@ func (s *scrobbler) detectSkipped(playerId int, trackId string) {
prev = np
continue
}
err = s.itunes.MarkAsSkipped(prev.TrackId, prev.Start.Add(time.Duration(1)*time.Minute))
err = s.itunes.MarkAsSkipped(prev.TrackId, prev.Start.Add(1*time.Minute))
if err != nil {
beego.Warn("Error skipping track", prev.TrackId)
} else {