This commit is contained in:
deathbybandaid 2024-02-21 11:10:30 -05:00
parent 847fe399f3
commit 4e5759167e
13 changed files with 12 additions and 12 deletions

View File

@ -5,18 +5,18 @@ echo "Welcome to plex-tools wrapper utility!"
script_dir="$PWD" script_dir="$PWD"
case "$1" in case "$1" in
token) source "$script_dir"/bash/plex-token.sh;; token) source plex-token.sh;;
freshen) source "$script_dir"/bash/plex-freshen.sh;; freshen) source ./plex-freshen.sh;;
trash) source "$script_dir"/bash/plex-emptytrash.sh;; trash) source ./plex-emptytrash.sh;;
analyze) source "$script_dir"/bash/plex-analyze.sh;; analyze) source ./plex-analyze.sh;;
bundles) source "$script_dir"/bash/plex-cleanbundles.sh;; bundles) source ./plex-cleanbundles.sh;;
metadata) source "$script_dir"/bash/plex-refreshmetadata.sh;; metadata) source ./plex-refreshmetadata.sh;;
claim) source "$script_dir"/bash/claimpms.sh;; claim) source ./claimpms.sh;;
sqlite) source "$script_dir"/bash/plex-sqlite.sh;; sqlite) source ./plex-sqlite.sh;;
dbrepair) source "$script_dir"/bash/DBRepair.sh stop auto start exit;; dbrepair) source ./DBRepair.sh stop auto start exit;;
start) source "$script_dir"/bash/DBRepair.sh start exit;; start) source ./DBRepair.sh start exit;;
stop) source "$script_dir"/bash/DBRepair.sh stop exit;; stop) source ./DBRepair.sh stop exit;;
restart) source "$script_dir"/bash/DBRepair.sh stop start exit;; restart) source ./DBRepair.sh stop start exit;;
"") echo "No plex-tools command given";; "") echo "No plex-tools command given";;
*) echo "'$1' is not a valid plex-tools command";; *) echo "'$1' is not a valid plex-tools command";;
esac esac