From 7a7cfd1a56fdf3aa43c9966754cfc0de9464e88c Mon Sep 17 00:00:00 2001 From: taylorbourne Date: Wed, 4 Mar 2020 17:25:10 -0800 Subject: [PATCH] Remove silent option so errors can be seen. Change request to POST and correct the token variable name. Prune unnecessary parameters from URL (#10) --- cronjob.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cronjob.sh b/cronjob.sh index a224d3a..9fbb59d 100644 --- a/cronjob.sh +++ b/cronjob.sh @@ -116,7 +116,7 @@ if [ "$use_plexAPI" = "yes" ]; then if [ -z "$plexIP" ]; then echo "no Plex credentials provided" else - curl -s "http://$plexIP:$plexPORT/livetv/dvrs/$plexID/reloadGuide?X-Plex-Product=Plex%20Web&X-Plex-Version=4.8.4&X-Plex-Client-Identifier=$plexToken&X-Plex-Platform=Firefox&X-Plex-Platform-Version=69.0&X-Plex-Sync-Version=2&X-Plex-Features=external-media&X-Plex-Model=bundled&X-Plex-Device=Linux&X-Plex-Device-Name=Firefox&X-Plex-Device-Screen-Resolution=1128x657%2C1128x752&X-Plex-Language=de" -H "User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0" -H "Accept: text/plain, */*; q=0.01" -H "Accept-Language: de" --compressed -H "X-Requested-With: XMLHttpRequest" -H "Connection: keep-alive" -H "Referer: http://$plexIP:$plexPORT/web/index.html" --data "" + curl -X POST "http://$plexIP:$plexPORT/livetv/dvrs/$plexID/reloadGuide?X-Plex-Token=$plexToken" sleep 1 fi fi