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
This commit is contained in:
@@ -107,7 +107,7 @@ if [ "$use_plexAPI" = "yes" ]; then
|
|||||||
if [ -z "$plexUpdateURL" ]; then
|
if [ -z "$plexUpdateURL" ]; then
|
||||||
echo "no Plex credentials provided"
|
echo "no Plex credentials provided"
|
||||||
else
|
else
|
||||||
curl -s -X POST "$plexUpdateURL"
|
curl --location --request POST "$plexUpdateURL"
|
||||||
sleep 1
|
sleep 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
11
sample.env
11
sample.env
@@ -41,7 +41,8 @@ YamlList="CBLguide.yaml SATguide.yaml SATSport.yaml"
|
|||||||
### Emby
|
### Emby
|
||||||
# Only necessary if xTeVe API is active
|
# Only necessary if xTeVe API is active
|
||||||
# API Key, https://github.com/MediaBrowser/Emby/wiki/Api-Key-Authentication
|
# 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
|
use_embyAPI=no
|
||||||
embyIP=
|
embyIP=
|
||||||
embyPORT=8096
|
embyPORT=8096
|
||||||
@@ -51,10 +52,10 @@ embyID=
|
|||||||
### Plex
|
### Plex
|
||||||
# Only necessary if xTeVe API is active
|
# 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/),
|
# 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
|
# and open chrome developer tools (press F12). Once developer tools is open, press (Ctrl/Cmd)+Shift+P,
|
||||||
# Guide" link in Plex and then look at the developer tools window. The first request listed should start
|
# type "network" and press enter. Then, find and click the "Refresh Guide" link in Plex. Over in the
|
||||||
# with "reloadGuide?". Right click the line and go to copy -> Copy link address. Paste the result below as
|
# developer tools window/pane, the first request listed should start with "reloadGuide?". Right click
|
||||||
# plexUpdateURL.
|
# the line and go to copy -> Copy link address. Paste the result below as plexUpdateURL.
|
||||||
use_plexAPI=no
|
use_plexAPI=no
|
||||||
plexUpdateURL=
|
plexUpdateURL=
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user