Fixed Plex DVR refresh variables (#39)

* Added use_plexAPI environment variable

* Updated if statement to use env var
This commit is contained in:
Austin Valle
2021-03-16 01:58:04 -04:00
committed by GitHub
parent a62308af1d
commit cf6166ed9e
2 changed files with 2 additions and 2 deletions

View File

@@ -91,7 +91,7 @@ fi
# update Plex via API
if [ "$use_plexAPI" = "yes" ]; then
echo "Updating Plex..."
if [ -z "$plexIP" ]; then
if [ -z "$plexUpdateURL" ]; then
echo "no Plex credentials provided"
else
curl -s -X POST "$plexUpdateURL"