Closed jesseward closed 1 year ago
changed some behaviour to ensure that matching of the artist maps to the MusicBrainz ID. This fixes the problem(s) described in https://github.com/jesseward/jellyfin-plugin-lastfm/issues/40
[2023-06-10 20:50:41.694 +00:00] [INF] [28] Emby.Server.Implementations.ScheduledTasks.TaskManager: Executing "Import Last.fm Loved Tracks"
[2023-06-10 20:50:41.694 +00:00] [INF] [28] Jellyfin.Plugin.Lastfm.ScheduledTasks.ImportLastfmData: Syncing LastFM favourties for "test"
[2023-06-10 20:50:42.275 +00:00] [INF] [17] Jellyfin.Plugin.Lastfm.ScheduledTasks.ImportLastfmData: Retrieved 216 lovedTracks from LastFM for user "jw76"
[2023-06-10 20:50:42.275 +00:00] [INF] [17] Jellyfin.Plugin.Lastfm.ScheduledTasks.ImportLastfmData: User "test" has 171 loved tracks in last.fm that have an associated musicbrainz Artist id
[2023-06-10 20:50:42.278 +00:00] [INF] [17] Jellyfin.Plugin.Lastfm.ScheduledTasks.ImportLastfmData: Match Found: "Echomen"-"Orient" <== LastFM :: Library ==> "Echomen"-"Orient"
[2023-06-10 20:50:42.401 +00:00] [INF] [17] Jellyfin.Plugin.Lastfm.ScheduledTasks.ImportLastfmData: Finished Last.fm lovedTracks sync for "test". Matched Songs: 1
[2023-06-10 20:50:42.402 +00:00] [INF] [17] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Import Last.fm Loved Tracks" Completed after 0 minute(s) and 0 seconds
Related
Summary
Moved from
System.Runtime.Serialization
toSystem.Text.json.Serialization
json handling in API model responses.This allows the scheduled task to fetch the my set of Last.FM loved tracks and matches against my JF library.
Also changed the way that the lovedtracks from LastFM are matched to the JellyFin library. There is an explicit check against the MusicbrainzID now. The existing logic that used the linq query was too greedy when matching songs.