I'am not sure how is should address sab categories in the script (if possible).
So today i have a bunch of this for each category in sab (modified for each ofc):
Code: Select all
#! /bin/bash
### Updates Plex movies ###
wget -q --delete-after "http://PLEX_SERVER-IP:32400/library/sections/1/refresh" > /dev/null
Code: Select all
UpdatePlex () {
if $movies
then
"update plex for movies command"
else
"do noting"
fi
if $standup
then
"update plex for standup command"
else
"do nothing"
fi
}
Would be nice to learn something new