Page 1 of 1

refresh Plex library docker unRAID sab

Posted: October 9th, 2016, 3:08 pm
by dv8ed
How can I run this? unRAID docker doesn't have wget so not sure if python or curl? After sab downloads I want to run this post script to refresh Plex library.
http://[PMS_IP_Address]:32400/library/sections/2/refresh?X-Plex-Token=YourTokenGoesHere

Below script is working okay if anyone has suggestions to improve it please let me know.
I'm not sure why I get this log output in sab but it doesn't seem to effect anything.

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0

UpdatePlex.sh
#!/bin/sh
curl "http://[PMS_IP_Address]:32400/library/sections/2/refresh?X-Plex-Token=YourTokenGoesHere"