This commit is contained in:
deathbybandaid 2023-03-14 11:17:29 -04:00
parent 2f83d754ca
commit 41b23314a4

View File

@ -45,7 +45,7 @@ token_from_api() {
-H 'X-Plex-Platform: xcid' \ -H 'X-Plex-Platform: xcid' \
-H 'X-Plex-Product: Plex Media Server'\ -H 'X-Plex-Product: Plex Media Server'\
-H 'X-Plex-Device: Linux'\ -H 'X-Plex-Device: Linux'\
-H 'X-Plex-Client-Identifier: XXXX' --compressed >/tmp/plex_sign_in -H 'X-Plex-Client-Identifier: XXXX' --compressed >/tmp/plex_sign_in >> /dev/null 2>&1
X_PLEX_TOKEN=$(sed -n 's/.*<authentication-token>\(.*\)<\/authentication-token>.*/\1/p' /tmp/plex_sign_in) X_PLEX_TOKEN=$(sed -n 's/.*<authentication-token>\(.*\)<\/authentication-token>.*/\1/p' /tmp/plex_sign_in)
if [ -z "$X_PLEX_TOKEN" ]; then if [ -z "$X_PLEX_TOKEN" ]; then
cat /tmp/plex_sign_in cat /tmp/plex_sign_in