From 411b58340c94ce4ecb82e90ed4cacd4f3e5006dd Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Tue, 14 Mar 2023 10:25:48 -0400 Subject: [PATCH] test --- plex-token.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plex-token.sh b/plex-token.sh index 73d92b7..a1536c0 100644 --- a/plex-token.sh +++ b/plex-token.sh @@ -5,8 +5,11 @@ source ./HostConfig.sh HostConfig echo "$AppSuppDir" -#PLEX_PREFERENCES_XML="/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Preferences.xml" +PLEX_PREFERENCES_XML="/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Preferences.xml" +echo "$PLEX_PREFERENCES_XML" +PLEX_PREFERENCES_XML="$AppSuppDir/Plex Media Server/Preferences.xml" +echo "$PLEX_PREFERENCES_XML" # get token #LOCAL_PLEX_TOKEN=`cat "${PLEX_PREFERENCES_XML}" | sed -e 's;^.* PlexOnlineToken=";;' | sed -e 's;".*$;;' | tail -1`