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`