Thread Rating:
  • 0 Vote(s) - 0 Average
refresh library
#1
Hi,

I use two raspberry kodis (osmc) on a mysql shared movie/audio library.
I use another Kodi on my Windows PC to scan and get library right.

Sometimes, the library isn't refreshed (or reloaded from database) on the raspberries.
As I ever do some json-rpc command with php to do some stuff on rasps, is there a way to say the rasps to reload the datas ? I don't mean to scan medias to add them into the library or search for anything on the net/scrappers, just reload the database to see last added movies/music without having to reboot.

Thanks
Reply
#2
no one on this problem ?
Reply
#3
Have you tried VideoLibrary.Scan or VideoLibrary.Clean from here?
Reply
#4
Well, I don't want to scan it, as all new content is added manually with different scrappers on my PC. So the library is all good, just need to be reloaded.

I will try if clean command does the trick, thanks.
Reply
#5
If you're not wanting to scan, then you definitely don't want to clean, which as I understand it is a more invasive action.

How is Kodi set upwith MySQL? Did you use the wiki guide here? Under the importing section of this page it says you need to use the SMB protocol and not just a network share or Windows mapped drive when accessing your library. It also recommends using IP address over hostname.
Reply
#6
Yes I only use static IPs, and smb. Will try next time I add something ;-)
Reply
#7
It may not help you but restarting the Kodi application will cause the library to be refreshed. It might be the simplest solution.
Reply
#8
Yes, sometimes I reboot the raspberry to be sure to be up to date. But strange there isn't a refresh or reload command :/
Reply
#9
I find the updates pretty instantaneous when using MySQL. ie rescan initiated on Machine A, list of "recently added episodes" updates immediately on Machine B. Even if it doesn't, backing out then going back into the view always updates it.
If I have helped you or increased your knowledge, click the 'thank user' button to give thanks :) (People with less than 20 posts won't see the "Thank you" button.)
Reply



refresh library00