test
This commit is contained in:
parent
2f83d754ca
commit
41b23314a4
@ -45,7 +45,7 @@ token_from_api() {
|
||||
-H 'X-Plex-Platform: xcid' \
|
||||
-H 'X-Plex-Product: Plex Media Server'\
|
||||
-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)
|
||||
if [ -z "$X_PLEX_TOKEN" ]; then
|
||||
cat /tmp/plex_sign_in
|
||||
|
||||
Loading…
Reference in New Issue
Block a user