This commit is contained in:
deathbybandaid 2024-02-21 10:05:58 -05:00
parent 4998c23185
commit a000043400

View File

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