Renaming Audio files in Local Providers

Issue description:

So recently, i been trying to bulk rename some of my audio tracks, and one of the issues that i faced was, whenever i renamed a certain song, in the symfonium, it would lose sll the user rating, favorite and the ability to be playable in a playlist, basically unusable. the app tries to act as if it’s a new audio file and leave behind whatever it had, it’s really frustrating because this way, all my data gets deleted whenever i rename an audio

Logs:

Upload description: renaming files issue - switchyftw

Additional information:

 
thank you
 

Reproduction steps:

 

  1. interact with an audio file first (add to favourite, let it have a playback and add it to a playlist)

  2. rename that specific file to anything else

  3. lunch the app and sync

  4. the whole data in the first step now is gone
     

Media provider:

Local device

Screenshots:

     

Yes the filename is the key, computing a full hash of files is not really possible on a phone.

why is it in many other apps i own, they seem to keep their data no matter what modifications i do to the file? does the app work differently?

so i have to be cautious next time i bulk rename or rename in general?

Most older apps use Android Media Store and rely those IDs.

Some may consider the files the same based on a couple of values, but that’s error prone and very slow specially as I support very very large libraries.

Do I understand correctly that only the filename must remain unchanged?
So I can change the title, artist or genre tag and the playback statistics remain the same?

Yes that’s the choice that was made.

1 Like

so for instance, let’s say i had a playback data on a certain audio file named “something” and i lose the file, would i regain the data back if i download an alternative audio file with the exact name “something” ? (of course if i restore a back up afterwards)

i did this test on a the same file and the data came back. i basically renamed a file i had data with, lost the data, then renamed back to its original name again that had the data and restored a backup, my data with that file was regained.

1 Like

Yes the backup will restore based on the filename/path.

1 Like