mirror of
https://git.sr.ht/~phw/scotty
synced 2025-06-03 12:08:34 +02:00
listenbrainz: fixed timestamp update with duplicates
This commit is contained in:
parent
b18a6c2104
commit
b1b0df7763
2 changed files with 3 additions and 0 deletions
|
@ -7,6 +7,8 @@
|
||||||
- listenbrainz: faster loading of missing loves metadata using the ListenBrainz
|
- listenbrainz: faster loading of missing loves metadata using the ListenBrainz
|
||||||
API instead of MusicBrainz. Fallback to slower MusicBrainz query, if
|
API instead of MusicBrainz. Fallback to slower MusicBrainz query, if
|
||||||
ListenBrainz does not provide the data.
|
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
|
- spotify-history: it is now possible to specify the path directly to the
|
||||||
`my_spotify_data_extended.zip` ZIP file as downloaded from Spotify.
|
`my_spotify_data_extended.zip` ZIP file as downloaded from Spotify.
|
||||||
- spotify-history: the parameter to the export archive path has been renamed to
|
- spotify-history: the parameter to the export archive path has been renamed to
|
||||||
|
|
|
@ -165,6 +165,7 @@ func (b *ListenBrainzApiBackend) ImportListens(ctx context.Context, export model
|
||||||
msg := i18n.Tr("Ignored duplicate listen %v: \"%v\" by %v (%v)",
|
msg := i18n.Tr("Ignored duplicate listen %v: \"%v\" by %v (%v)",
|
||||||
l.ListenedAt, l.TrackName, l.ArtistName(), l.RecordingMBID)
|
l.ListenedAt, l.TrackName, l.ArtistName(), l.RecordingMBID)
|
||||||
importResult.Log(models.Info, msg)
|
importResult.Log(models.Info, msg)
|
||||||
|
importResult.UpdateTimestamp(l.ListenedAt)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue