sentriz / gonic

music streaming server / free-software subsonic server API implementation
ircs://irc.libera.chat/#gonic
GNU General Public License v3.0
1.49k stars 105 forks source link

Intelligent track change detection in scanner to preserve primary keys #465

Open tboby opened 5 months ago

tboby commented 5 months ago

gonic version: v0.16.2

commit: f98b232

I'm using Picard to tidy up my media library. For some tracks and albums, this involved renaming, although the ids should have remained the same as they were identified already. I'm fairly sure that when I renamed it lost my user ratings. Renaming back didn't seem to restore them.

Gonic remains wonderful, thanks!

sentriz commented 5 months ago

this is definitely an issue an quite a tricky one. if a user has a library on the filesystem, then cleans it with picard or beets or whatever, usally both the paths and metadata change. from gonic's perspective the old and new files have nothing in common any more. even the checksum of the files would be new, ofc the paths are different too

i was thinking maybe about reading the mb track ID or mb recording ID but that may well have duplicates and not correspond 1 to 1 with gonic ids

sentriz commented 5 months ago

maybe using AcoustIDs help. but that requires all users have them set