Page 1 of 1
[HELP] Plex update script ?
Posted: December 31st, 2014, 2:30 am
by shadytree
I looked through the forum and see a suggestion, but can't get it to work.
Anyone got a working Plex update script please ?
(same style as sickbeards, push to Plex update)
Would like to assign to certain folders only.
thanks in advance.
Re: [HELP] Plex update script ?
Posted: January 7th, 2015, 5:30 pm
by shadytree
Still, struggling to get this sussed, but I found this command on the PLEX forum, but still can't get it to work in the form of a post processing script.
This is the actual command I wish SAB to send to my Plex library is >>>
http://192.168.0.22:32400/library/sections/1/refresh
Re: [HELP] Plex update script ?
Posted: January 7th, 2015, 6:00 pm
by sander
on which OS is SAB running?
Re: [HELP] Plex update script ?
Posted: January 8th, 2015, 12:03 am
by shadytree
Running in Linux on a QNAP server, so needs to be a Python script.
Re: [HELP] Plex update script ?
Posted: January 8th, 2015, 1:03 am
by sander
shadytree wrote:Running in Linux on a QNAP server, so needs to be a Python script.
Does
Code: Select all
lynx --dump http://192.168.0.22:32400/library/sections/1/refresh
start the refresh script?
Re: [HELP] Plex update script ?
Posted: January 8th, 2015, 1:15 am
by shadytree
No, it gives the following error msg
line 1
{\rtf1\ansi\ansicpg1252\cocoartf1343\cocoasubrtf160
^
SyntaxError: unexpected character after line continuation character
Re: [HELP] Plex update script ?
Posted: January 8th, 2015, 1:20 am
by sander
Oh, then I can't help you. I thought you just had to trigger that script to let Plex update.
Re: [HELP] Plex update script ?
Posted: January 12th, 2015, 6:07 pm
by nock
Pyhton script? Should work with just a easy bash scritp.. Either way, this is the code you need.
This is easy, this is my "movie" script:
Create a script and save it to your script folder ( sickberd/autoprocess folder etc..)
Code: Select all
#! /bin/bash
### Updates Plex movies ###
wget -q --delete-after "http://PLEX-SERVER-IP:32400/library/sections/6/refresh" > /dev/null
Replace the number "6" with the correct library number
Now just add the script to a category
You might want to make the script(s) executable sudo chmod +x..
Re: [HELP] Plex update script ?
Posted: January 13th, 2015, 2:54 am
by shadytree
Thanks Nock, just what i was looking for. Will give that a try later.
To confirm, making it executable, is just
?
Re: [HELP] Plex update script ?
Posted: January 13th, 2015, 7:32 am
by nock
Yes, but you can drop ".sh"
Re: [HELP] Plex update script ?
Posted: January 13th, 2015, 4:18 pm
by shadytree
nock, I've done all above, and copied the new script to the correct folder, but its not visible in the sab config script dropdown?
I thought only python scripts were possible?
Re: [HELP] Plex update script ?
Posted: January 13th, 2015, 4:29 pm
by nock
go to sab config -> folders -> Post-Processing Scripts Folder and make sure the path are correct
Re: [HELP] Plex update script ?
Posted: January 13th, 2015, 4:34 pm
by shadytree
nock wrote:go to sab config -> folders -> Post-Processing Scripts Folder and make sure the path are correct
Yep path is correct. I can see all my .py scripts for sickbeard and couchpotato etc, but not this new one. very odd
Re: [HELP] Plex update script ?
Posted: January 13th, 2015, 4:52 pm
by nock
Try make a .txt, .py and see if you can see it etc. If you cant see it, i cant help you..