Change duration check from >= to > 30

Changed to reflect the AI suggestion.
This commit is contained in:
Timo 2026-10-13 10:59:36 +02:00 committed by GitHub
parent 3a1db99f8c
commit 2cbae9ce63
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -176,7 +176,7 @@ func (c *client) scrobble(ctx context.Context, sessionKey string, info ScrobbleI
params.Add("album", info.album)
params.Add("trackNumber", strconv.Itoa(info.trackNumber))
params.Add("mbid", info.mbid)
if info.duration >= 30 {
if info.duration > 30 {
params.Add("duration", strconv.Itoa(info.duration))
} else {
log.Debug(ctx, "LastFM: scrobble duration is less than 30 seconds, duration will not be transmitted", "duration", info.duration)