From 8dc8f3c48256817954311cbfda682d90f11c57c9 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Wed, 21 Feb 2024 10:08:56 -0500 Subject: [PATCH] test --- remove_lonely_collections.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/remove_lonely_collections.py b/remove_lonely_collections.py index a8996aa..e8bc18a 100644 --- a/remove_lonely_collections.py +++ b/remove_lonely_collections.py @@ -34,20 +34,20 @@ class plex_info(): 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 = token_proc.stdout.read().decode().strip("\n") - token_proc.terminate() - token_proc.communicate() - token_proc.kill() + #token = token_proc.stdout.read().decode().strip("\n") + #token_proc.terminate() + #token_proc.communicate() + #token_proc.kill() # token = subprocess.run(['/bin/bash', token_script], capture_output=True, text=True).stdout - return token + return token_script @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