From 4d3de78d08a4bd64718caa4b5e67217e310bdfb0 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Wed, 21 Feb 2024 10:07:06 -0500 Subject: [PATCH] test --- remove_lonely_collections.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/remove_lonely_collections.py b/remove_lonely_collections.py index e28721f..a8996aa 100644 --- a/remove_lonely_collections.py +++ b/remove_lonely_collections.py @@ -33,7 +33,6 @@ class plex_info(): @property def token(self): 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 = token_proc.stdout.read().decode().strip("\n") token_proc.terminate() @@ -41,14 +40,14 @@ class plex_info(): token_proc.kill() # token = subprocess.run(['/bin/bash', token_script], capture_output=True, text=True).stdout - return token_script + return token @property def url(self): return '%s%s:%s' % (self.proto, self.address, str(self.port)) -print(plex_info.token) +print(plex_info.token()) #sess = requests.Session() #sess.verify = False