From bd6a71b19739f6f3c7803fd83296120916cb2bd9 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Mon, 12 Oct 2026 23:12:19 -0700 Subject: windows: restrict flac search to Music dir --- optical.py | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) diff --git a/optical.py b/optical.py index 721c7ff..1e3a268 100644 --- a/optical.py +++ b/optical.py @@ -270,25 +270,11 @@ def run_abcde_rip( "or use auto-download from the Rip CD prompt." ) - is_console = Path(cueripper).name.lower() == "cueripper.console.exe" rip_start = time.time() + if on_output: + on_output("CUERipper GUI opened. Start rip there and close it when done.") - if is_console: - cmd = [ - cueripper, - "--drive", - drive, - "--output", - str(workspace), - "--format", - "flac", - ] - else: - if on_output: - on_output("CUERipper GUI opened. Start rip there and close it when done.") - cmd = [cueripper] - - _run_streaming_command(cmd, workspace, on_output) + _run_streaming_command([cueripper], workspace, on_output) flacs_in_workspace = sorted(str(p.resolve()) for p in workspace.rglob("*.flac")) if flacs_in_workspace: @@ -297,12 +283,7 @@ def run_abcde_rip( configured_output = os.environ.get("CUERIPPER_OUTPUT_DIR") search_roots = [ workspace, - Path(cueripper).parent, Path.home() / "Music", - Path.home() / "Documents", - Path.home() / "Desktop", - Path.home() / "Downloads", - Path(tempfile.gettempdir()), ] if configured_output: search_roots.insert(0, Path(configured_output)) -- cgit v1.2.3