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