Skip to content

Commit

Permalink
Expanded plex token characters to include '-' and '_' (mrworf#271)
Browse files Browse the repository at this point in the history
Solves issue updating private builds
  • Loading branch information
mrtumnus committed Feb 4, 2020
1 parent 54da6bc commit 9e25638
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plexupdate-core
Expand Up @@ -78,9 +78,9 @@ getPlexServerToken() {
if [ ! -z "${I}" -a -f "${I}${PREFFILE}" ]; then
# When running installer.sh directly from wget, $0 will return bash
if [ "$(basename $0)" = "installer.sh" -o "$(basename $0)" = "bash" ]; then
TOKEN=$(sudo sed -n 's/.*PlexOnlineToken="\([[:alnum:]]*\).*".*/\1/p' "${I}${PREFFILE}" 2>/dev/null)
TOKEN=$(sudo sed -n 's/.*PlexOnlineToken="\([[:alnum:]_-]*\).*".*/\1/p' "${I}${PREFFILE}" 2>/dev/null)
else
TOKEN=$(sed -n 's/.*PlexOnlineToken="\([[:alnum:]]*\).*".*/\1/p' "${I}${PREFFILE}" 2>/dev/null)
TOKEN=$(sed -n 's/.*PlexOnlineToken="\([[:alnum:]_-]*\).*".*/\1/p' "${I}${PREFFILE}" 2>/dev/null)
fi
fi
done
Expand Down

0 comments on commit 9e25638

Please sign in to comment.