mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-14 02:26:56 -07:00
Moved config sourcing so it's possible to override
all config settings (except URL, that should be changed if plex.tv alters again).
This commit is contained in:
parent
7166f62ffc
commit
b85ba28d2d
1 changed files with 11 additions and 10 deletions
|
@ -49,23 +49,24 @@ DOWNLOADDIR="."
|
|||
# Don't change anything below this point
|
||||
#
|
||||
|
||||
# Load settings from config file if it exists
|
||||
if [ -f ~/.plexupdate ]; then
|
||||
source ~/.plexupdate
|
||||
fi
|
||||
|
||||
# Current pages we need
|
||||
URL_LOGIN=https://plex.tv/users/sign_in
|
||||
URL_DOWNLOAD=https://plex.tv/downloads?channel=plexpass
|
||||
URL_DOWNLOAD_PUBLIC=https://plex.tv/downloads
|
||||
|
||||
# Defaults
|
||||
# (aka "Advanced" settings, can be overriden with config file)
|
||||
RELEASE="64-bit"
|
||||
KEEP=no
|
||||
FORCE=no
|
||||
PUBLIC=no
|
||||
AUTOINSTALL=no
|
||||
|
||||
# Load settings from config file if it exists
|
||||
if [ -f ~/.plexupdate ]; then
|
||||
source ~/.plexupdate
|
||||
fi
|
||||
|
||||
# Current pages we need - Do not change unless Plex.tv changea again
|
||||
URL_LOGIN=https://plex.tv/users/sign_in
|
||||
URL_DOWNLOAD=https://plex.tv/downloads?channel=plexpass
|
||||
URL_DOWNLOAD_PUBLIC=https://plex.tv/downloads
|
||||
|
||||
# Parse commandline
|
||||
set -- $(getopt fhko: -- "$@")
|
||||
while true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue