23 lines
922 B
Bash
23 lines
922 B
Bash
#!/bin/bash
|
|
|
|
echo "Welcome to plex-tools wrapper utility!"
|
|
|
|
script_dir="$PWD"
|
|
|
|
case "$1" in
|
|
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
|