localMusicHandler: General Fixes

Bugs fixed and features:
 - Creating the database and adding songs in the same run would fail
 - Songs with multiple artists are now separated with ', ' instead of the ID3 ';'
 - Excluded .mp4 files from the song list
 - Songs aren't scanned and duplicated on every start
 - General cleanup and memory leak fixes
This commit is contained in:
2026-02-14 02:42:04 +10:00
parent 26df10f8fb
commit 1f814fff6e
2 changed files with 59 additions and 41 deletions

View File

@@ -16,7 +16,7 @@ void localMusicHandler_scanDirectory(char* directory);
void localMusicHandler_scanFile(int idx);
void localMusicHandler_generateUid(int idx);
void localMusicHandler_initDatabase();
int localMusicHandler_initDatabase();
void localMusicHandler_moveSongsToDatabase(int idx);
#ifdef __cplusplus