From edb229f079a7f1b673d22ebe6dcf85efefbf8969 Mon Sep 17 00:00:00 2001 From: Ben Sarmiento Date: Sun, 3 Mar 2024 09:10:59 +0100 Subject: [PATCH] Add options to plex_update script --- plex_update.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plex_update.sh b/plex_update.sh index 4d45347..ff721ca 100755 --- a/plex_update.sh +++ b/plex_update.sh @@ -4,7 +4,12 @@ # When zurg detects changes, it can trigger this script IF your config.yml contains # on_library_update: sh plex_update.sh "$@" -plexip=$(/sbin/ip route|awk '/default/ { print $3 }') +dockerip=$(/sbin/ip route|awk '/default/ { print $3 }') # if zurg is running inside a Docker container +localip="localhost" # if zurg is running on the host machine, and Plex is running on the same machine +external="plexdomain.com" # if Plex is running on a different machine + +plexip=$localip # replace with your Plex IP + plex_url="http://$plexip:32400" # If you're using zurg inside a Docker container, by default it is 172.17.0.1:32400 echo "Detected Plex URL inside Docker container: $plex_url" token="yourplextoken" # open Plex in a browser, open dev console and copy-paste this: window.localStorage.getItem("myPlexAccessToken")