This commit is contained in:
deathbybandaid 2023-03-14 14:16:18 -04:00
parent 2317caf74e
commit dad2cad2c4
4 changed files with 7 additions and 7 deletions

View File

@ -32,10 +32,10 @@ update_from_api() {
curl -X PUT http://127.0.0.1:32400/library/clean/bundles?X-Plex-Token=${LOCAL_PLEX_TOKEN} curl -X PUT http://127.0.0.1:32400/library/clean/bundles?X-Plex-Token=${LOCAL_PLEX_TOKEN}
} }
case "$1" in case "$2" in
cli) update_from_cli;; cli) update_from_cli;;
""|api) update_from_api;; ""|api) update_from_api;;
*) echo "'$1' is not a valid plex-tools freshen command";; *) echo "'$2' is not a valid plex-tools freshen command";;
esac esac

View File

@ -8,7 +8,7 @@ PLEX_SQLITE_RUN() {
echo "Getting Host Information" echo "Getting Host Information"
HostConfig HostConfig
PLEX_SQLITE ${@} PLEX_SQLITE ${@:2}
fi fi
} }

View File

@ -55,8 +55,8 @@ token_from_api() {
echo $X_PLEX_TOKEN echo $X_PLEX_TOKEN
} }
case "$1" in case "$2" in
api) token_from_api;; api) token_from_api;;
""|xml) token_from_Pref_XML;; ""|xml) token_from_Pref_XML;;
*) echo "'$1' is not a valid plex-tools token command";; *) echo "'$2' is not a valid plex-tools token command";;
esac esac

View File

@ -3,8 +3,8 @@
echo "Welcome to plex-tools wrapper utility!" echo "Welcome to plex-tools wrapper utility!"
case "$1" in case "$1" in
token) source ./plex-token.sh ${@:2};; token) source ./plex-token.sh;;
freshen) source ./plex-freshen.sh ${@:2};; freshen) source ./plex-freshen.sh;;
claim) source ./claimpms.sh;; claim) source ./claimpms.sh;;
sqlite) source ./plex-sqlite.sh;; sqlite) source ./plex-sqlite.sh;;
dbrepair) source ./DBRepair.sh stop auto start exit;; dbrepair) source ./DBRepair.sh stop auto start exit;;