diff --git a/remove_lonely_collections.py b/remove_lonely_collections.py index 6f5347e..e6db1ef 100644 --- a/remove_lonely_collections.py +++ b/remove_lonely_collections.py @@ -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()