Updating Library from an Outside Source

I made a python script that deals with downloading and placing new TV show episodes, but I was wondering if there is anyway without using the remote/menu that I can initiate a update library?



Thanks.

pretty sure there’s a http command to trigger a library update

Yes. Through http. You need to make sure you have Plex’s web server turned on though. It’s in the Plex settings under network I think. Basically, you just need to hit the following url:



http://localhost:3000/xbmcCmds/xbmcHttp?command=ExecBuiltIn&parameter=XBMC.updatelibrary(video)



Replace localhost with the correct IP address if you aren't running this from the Plex box. See [here](http://www.jetshred.com/how-to-have-plex-automatically-update-library-when-sabnzbd-finishes-a-download-plex-sabnzbd/) for more info.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.