Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When renaming files, try to migrate audio files in DB instead of deleting/creating files #308

Closed
epoupon opened this issue Feb 12, 2023 · 0 comments
Milestone

Comments

@epoupon
Copy link
Owner

epoupon commented Feb 12, 2023

Today, when a file is renamed, the corresponding entry in DB is removed, and a new one is created for the new file.
As a consequence, user stats are lost (stars, listen history).
We could use the track's MBID to identify the track. Checksums seem to be no help here since a rename action may be due to some minor metadata update if the user changed the way to build their file structures.

Note it may not be a big issue when listenbrainz is used to sync listens/loves, as stats are recreated accordingly at the next sync point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant