listenbrainz: fixed timestamp update with duplicates

This commit is contained in:
Philipp Wolfer 2025-05-24 18:52:15 +02:00
parent b18a6c2104
commit b1b0df7763
No known key found for this signature in database
GPG key ID: 8FDF744D4919943B
2 changed files with 3 additions and 0 deletions

View file

@ -7,6 +7,8 @@
- listenbrainz: faster loading of missing loves metadata using the ListenBrainz
API instead of MusicBrainz. Fallback to slower MusicBrainz query, if
ListenBrainz does not provide the data.
- listenbrainz: fixed issue were timestamp was not updated properly if
duplicate listens where detected during import.
- spotify-history: it is now possible to specify the path directly to the
`my_spotify_data_extended.zip` ZIP file as downloaded from Spotify.
- spotify-history: the parameter to the export archive path has been renamed to

View file

@ -165,6 +165,7 @@ func (b *ListenBrainzApiBackend) ImportListens(ctx context.Context, export model
msg := i18n.Tr("Ignored duplicate listen %v: \"%v\" by %v (%v)",
l.ListenedAt, l.TrackName, l.ArtistName(), l.RecordingMBID)
importResult.Log(models.Info, msg)
importResult.UpdateTimestamp(l.ListenedAt)
continue
}
}