Trigger CLI kodi folder update / rescan

Hi,

Can we initiate a kodi content rescan through a SSH session?

The reason is because I often add content remotely and when I’m back home it takes a while until the rescan in kodi completes :slight_smile:

Thanks
Stijn

I guess this recent thread covers it, or?

There are multiple ways, but here is a link to some of them

https://kodi.wiki/view/HOW-TO:Remotely_update_library

These methods require Settings>Services>Control>Allow remote control via HTTP to be enabled.

Thank you fzinken and joakim_s

Just tested both the curl option and the kodi-send option. And it looks like it works perfectly.My kids where watching a movie when the cleanup screen appeared after sending the cleanup command remotely :stuck_out_tongue:

It took me a while to find out how to add these commands in Yatse. Remotely I can use Yatse whenever my OpenVPN connection is established.

In the upper right corner there is a small icon with two curves to add custom commands. When you push this button and then push the plus button to add commands and choose import from media center you can select

  • scan video library
  • clean video library

probably you’ll find some usefull other commands there as well :slight_smile:

1 Like