mirror of
https://github.com/navidrome/navidrome.git
synced 2026-10-18 07:30:29 +00:00
Change duration check from >= to > 30
Changed to reflect the AI suggestion.
This commit is contained in:
parent
3a1db99f8c
commit
2cbae9ce63
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user