Instant Library Updating for Offline Music

Issue description:

First off, thank you for all the work you’ve put into Symphonium — it’s a fantastic app and a core part of my music setup.

One feature I’d love to see improved is how the app handles updates to the offline music library. Currently, it seems to require a full library scan to detect changes — whether it’s adding or removing tracks. In comparison, other apps like Oto Music instantly reflect these changes: new songs appear immediately after being added, and deleted songs disappear right away, without needing a manual scan or relaunch.

Having this kind of real-time or near-instant library updating would greatly improve the user experience and make Symphonium even more seamless for offline music listeners.

Thanks again for considering, and keep up the amazing work!

Logs:

Upload description: archaleas

Additional information:

 
Screenshots not applicable
 

Reproduction steps:

 
Add a new music file to accessable folder (in a folder that Symphonium has access to).

Open Symphonium – the newly added song does not appear immediately.

Manually trigger or a auto full library scan or restart the app.

Only after the scan, the new song shows up in the library.

Same issue applies when deleting a file:

Delete an existing music file from the storage.

Open Symphonium – the song still appears in the library.

It disappears only after a manual scan or app restart.

Expected Behavior (as seen in Oto Music)

Add or delete a file from the music folder.

Open Oto Music (or even while it’s open in the background).

The library instantly reflects the change – new songs show up right away, and deleted songs disappear automatically.
 

Media provider:

Local device

Screenshots:

     

You did not upload any logs, and please stop using chatGPT.

Uploaded, again. Not using chatgpt, please stop making unecessary comments that require peiople to respond to :wink:

Well I had to write a lot of comments just to have a proper issue and the mandatory logs :wink:

Anyway the OS does not send any file change event.

Are you sure that you have enabled the automatic sync on the provider and given the necessary permission ?

Provide new logs when enabling logs. Force kill the app, then restart the app and add a file to have the full details.

Auto sync and permissions have been activated and given.

New logs have been uploading following the above steps.

What file action did you do ?

The OS send a event in those logs but it says it was 5.5 hours earlier so it’s ignored.

I force killed the app, reopened it. in my file explorer i copied a newly downloaded song into the symfonium readable folder. reopened the app then created a log

And was the new song downloaded like 5 or 6 hours earlier?

No it was a fresh download only minutes prior. Should I repeat the process?

Yes with logs and note the time you do the action, then in Google files report the exact time it shows and your timezone in case the OS does something strange.

Logs created: 4:43pm
Google files (song copied into readable folder): 4:41pm time zone is Australian Eastern Standard Time

Out of interest, if you try and recreate this process do you get the song instantly appearing? Also disappearing instantly when deleted?

Edit: song had now appeared at 5:03pm after having to run a full library scan

Of course it works else it would not be present :wink:

With that said it’s not instant, as the function says it just automatically start syncs on file changes sent by the OS.

In the logs there’s a million different things … But the last one the app was killed and started a sync after you started it, your file copy occurred during the sync and unluckily the folder was already scanned so it was missed.

In the logs I see that there’s many syncs automatically starting properly on file change, it’s just that syncs are sometimes ultra slow on your device, probably due to the external sdcard. You can try to run Settings / Advanced / Cleanup internal state.

I still have no idea why your device sometimes send absurd dates preventing the auto sync, but with Samsung there’s always surprises. Will handle that Samsung things a little differently, but you’ll still have to wait for syncs to finish.

“With that said it’s not instant, as the function says it just automatically start syncs on file changes sent by the OS.” - I guess this is the essence of my query. Comparative apps like Oto have instant change reflections, my query is is it possible to look into how to mimick whatever their approach is

No it’s not possible. The question is why sync is slow on your device.