AIMP Forum
AIMP for Android => Вопросы / Questions => Topic started by: SpacePiggy on February 14, 2025, 01:56:39
-
How can I rename files in the AIMP app? I know I could rename them in another app, but doing so removes all the statistics associated with the tracks. I want to be able to rename a file and keep stats like play count. It would be even better if I could rename outside the app in order to use bulk renaming and other tools but in the app would be ok. Please let me know if this is possible on Android. Thanks.
-
Just invoke the "update content" action in My Music after renaming. The Music Library will automatically search for renames and correct it own index to keep all statistics for the file
-
Ok I have tried that a bunch of times, but it still doesn't recognize some name changes. For example, I have a file "We Go Together.opus" that was renamed to "180 - We Go Together.opus". AIMP doesn't seem to recognize this as a name change and instead sees it as the file being deleted, indicated by the deleted column for the first being 1 and the second being 0.
I tried to write a Python program (https://github.com/SpacePiggy17/AIMP-File-Merger (https://github.com/SpacePiggy17/AIMP-File-Merger)) to let me manually update files that had the same name and add the play counts together. I exported my settings to a zip file and unzipped it to modify. The program seems to work, correctly writing files to the "Tracks" table inside "AIMP.UserSettings/databases/MusicLibrary.db". However, when I zipped the settings folder back up and tried to import it into AIMP, I got this error: "Backup archive has invalid structure". As far as I can tell, the "Tracks" table follows the same format as the original, just with some play counts updated and some rows removed.
Is there anything else in the SQL database that I need to update, like "AIMP.UserSettings/files/PlaylistManager/index.dat" or something else? I assume that an internal index/count is not being updated or the file integrity is not being upheld when attempting to import into AIMP. If anyone could help me, that would be much appreciated. I just want to be able to merge play counts when a file is renamed. Seems simple enough since the "title" doesn't change at all, just the "filename".
-
For example, I have a file "We Go Together.opus" that was renamed to "180 - We Go Together.opus". AIMP doesn't seem to recognize this as a name change and instead sees it as the file being deleted, indicated by the deleted column for the first being 1 and the second being 0.
Does the file has correct meta data (title, album, artist)? Was duration changed?
-
Is there anything else in the SQL database that I need to update, like "AIMP.UserSettings/files/PlaylistManager/index.dat" or something else? I assume that an internal index/count is not being updated or the file integrity is not being upheld when attempting to import into AIMP. If anyone could help me, that would be much appreciated. I just want to be able to merge play counts when a file is renamed. Seems simple enough since the "title" doesn't change at all, just the "filename".
No
-
Does the file has correct meta data (title, album, artist)? Was duration changed?
Yes, it should have the correct metadata. When I rename files, I just rename the filename, so the title/album/artist should all stay the same. I compared the 2 files in the database, and the only things that changed were the file path, present/missing, file name, date modified, and date played. Attached is a breakdown of the changes.
-
Yes, it should have the correct metadata. When I rename files, I just rename the filename, so the title/album/artist should all stay the same. I compared the 2 files in the database, and the only things that changed were the file path, present/missing, file name, date modified, and date played. Attached is a breakdown of the changes.
Refer to the "About" dialog of the app, and check the "enable logging" option. Restart the app. Now, reproduce an issue and send the log file to me. Please, report to me a approximate time when issue was happened.