refresh Plex library docker unRAID sab

Come up with a useful post-processing script? Share it here!
Post Reply
dv8ed
Newbie
Newbie
Posts: 11
Joined: December 26th, 2010, 2:20 am

refresh Plex library docker unRAID sab

Post 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"
Post Reply