Kore icon indicating copy to clipboard operation
Kore copied to clipboard

Auto-update app music list after "Update Audio Library"?

Open jeffvandyke opened this issue 7 years ago • 5 comments

So I've set up this app with a raspberry pi media center for my dear father, and he likes it very much, save for some frustrations. One is: we can add new music with Filezilla over the network, and then we have to update the music library (through Kore, library maintenance -> update audio library), but then we have to pull-down to refresh the music search results for the app to see the library's new music in Kore.

Since the app initiated the library refresh, could it automatically update it's local cache of music afterwards to see new results faster? That whole refresh process doesn't seem intuitive to someone who doesn't understand how caches work, and this might ease some frustrations.

Any thoughts?

jeffvandyke avatar May 28 '18 02:05 jeffvandyke

I agree with this one, it's very frustrating to routinely have to refresh the content on my Kore apps, when I dump new music or video on the Kodi.

wonea avatar May 29 '18 08:05 wonea

Also, this is needed to be able to achieve a fully automated system such as: dump music to hard drive --> autotag and move to the right location (using something like beets) --> update Kodi audio db (with a hook) --> update Kore audio db

axelsimon avatar May 31 '18 13:05 axelsimon

Makes sense, but implementing it would have some limitations. Basically, Kore must know when the library update on Kodi ends, and that is only transmitted to Kore if the connection is through TCP.

Anyway, i agree with this and it isn't hard, but be warned that it will only work in connections made through TCP.

SyncedSynapse avatar Jun 01 '18 15:06 SyncedSynapse

Makes sense. I don't know the Kodi HTTP interface, though its documented here I believe, but it would be nice if there was an endpoint to get the timestamp the library was last updated for Kore to check when trying to use the cached library (e.g., app startup on the music library page, switching to the music library). The video library is a very similar case too.

Oh, and other Kore remotes would still have to manually refresh if a different Kore app did the library refresh, so that's another good case for it.

jeffvandyke avatar Jun 01 '18 17:06 jeffvandyke

I agree that it's a problem, a normal user doesn't thinks that there are 2 different ways of refreshing data, one for the client & one for the server.

If it's not possible now, at least launch a toast message after the update audio library is sent, saying: Remember to refresh your local library with a pull-down at the end!

A message could be put also on searches that don't find results: Didn't found what you expect? Try refreshing audio library and then pull down to refresh local data

elcasa avatar Nov 17 '18 14:11 elcasa