diff --git a/main.py b/main.py index c989480..bfcf32b 100644 --- a/main.py +++ b/main.py @@ -28,7 +28,7 @@ def run_pls_command(playlist_id): """Runs the docker exec command and returns combined stdout/stderr.""" cmd = ['docker', 'exec', 'navidrome-navidrome-1', '/app/navidrome', 'pls', '-l', 'error', '-np', playlist_id] try: - result = subprocess.run(cmd, capture_output=True, text=True, check=False, stderr=subprocess.STDOUT) + result = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True, check=False) return result.stdout except FileNotFoundError: logging.error("Command 'docker' not found. Please ensure it is installed and in your PATH.")