From cbbb2f77861dfa4f7f42da844bf853f06ee58658 Mon Sep 17 00:00:00 2001 From: taylorbourne Date: Mon, 1 Nov 2021 14:51:39 -0700 Subject: [PATCH] fix: fix plex update request (#70) * run raw plex curl request * update sample env file * parse raw chrome curl req * update cronjob * use post request to update plex * oops --- root/cronjob.sh | 2 +- sample.env | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/root/cronjob.sh b/root/cronjob.sh index 947ae39..cace7b1 100755 --- a/root/cronjob.sh +++ b/root/cronjob.sh @@ -107,7 +107,7 @@ if [ "$use_plexAPI" = "yes" ]; then if [ -z "$plexUpdateURL" ]; then echo "no Plex credentials provided" else - curl -s -X POST "$plexUpdateURL" + curl --location --request POST "$plexUpdateURL" sleep 1 fi fi diff --git a/sample.env b/sample.env index 6301658..f0e78e0 100644 --- a/sample.env +++ b/sample.env @@ -41,7 +41,8 @@ YamlList="CBLguide.yaml SATguide.yaml SATSport.yaml" ### Emby # Only necessary if xTeVe API is active # API Key, https://github.com/MediaBrowser/Emby/wiki/Api-Key-Authentication -# embyID, settings, scroll down click API, Scheduled Task Service, GET /ScheduledTasks, Try, Execute, look for "Refresh Guide" ID, sample here 9492d30c70f7f1bec3757c9d0a4feb45 +# embyID, settings, scroll down click API, Scheduled Task Service, GET /ScheduledTasks, Try, Execute, +# look for "Refresh Guide" ID, sample here 9492d30c70f7f1bec3757c9d0a4feb45 use_embyAPI=no embyIP= embyPORT=8096 @@ -51,10 +52,10 @@ embyID= ### Plex # Only necessary if xTeVe API is active # To find your Plex Update URL navigate to your plex server in chrome (eg, 192.168.1.1:32400/web/), -# and open chrome developer tools (press F12). Once developer tools is open find and click the "Refresh -# 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. +# and open chrome developer tools (press F12). Once developer tools is open, press (Ctrl/Cmd)+Shift+P, +# type "network" and press enter. Then, find and click the "Refresh Guide" link in Plex. Over in the +# developer tools window/pane, 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=