This commit is contained in:
deathbybandaid 2024-02-21 10:15:37 -05:00
parent dade01d9ce
commit 1e87ba205c

View File

@ -32,7 +32,7 @@ class PLEX_INFO():
@property
def token(self):
token_script = pathlib.Path(SCRIPT_DIR).joinpath('plex-token.sh')
token_proc = subprocess.Popen(['/bin/bash', token_script], stdout=subprocess.PIPE)
token_proc = subprocess.Popen(['/bin/bash', token_script, "xml"], stdout=subprocess.PIPE)
token = token_proc.stdout.read().decode().strip("\n")
token_proc.terminate()
token_proc.communicate()