This commit is contained in:
deathbybandaid 2024-02-21 11:06:39 -05:00
parent 7ee8a9fa64
commit 847fe399f3
13 changed files with 13 additions and 14 deletions

View File

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