From cf6166ed9e376146009a34b60c92d734f09fbe8a Mon Sep 17 00:00:00 2001 From: Austin Valle Date: Tue, 16 Mar 2021 01:58:04 -0400 Subject: [PATCH] Fixed Plex DVR refresh variables (#39) * Added use_plexAPI environment variable * Updated if statement to use env var --- root/cronjob.sh | 2 +- sample.env | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/root/cronjob.sh b/root/cronjob.sh index df80d3e..4a5eee3 100755 --- a/root/cronjob.sh +++ b/root/cronjob.sh @@ -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" diff --git a/sample.env b/sample.env index 2060c4e..3af7648 100644 --- a/sample.env +++ b/sample.env @@ -42,5 +42,5 @@ embyID= # Guide" link in Plex and then look at the developer tools window. The first request listed should start # with "reloadGuide?". Right click the line and go to copy -> Copy link address. Paste the result below as # plexUpdateURL. - +use_plexAPI=no plexUpdateURL=