aboutsummaryrefslogtreecommitdiffstats
path: root/optical.py
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2026-10-12 23:12:19 -0700
committerPinapelz <yukais@pinapelz.com>2026-10-12 23:21:48 -0700
commitbd6a71b19739f6f3c7803fd83296120916cb2bd9 (patch)
tree8fbfbba25534d915d0852a706f9617c60f99b23e /optical.py
parent3f91956ef041cad4b766648a8202ca314808ddc7 (diff)
windows: restrict flac search to Music dir
Diffstat (limited to 'optical.py')
-rw-r--r--optical.py25
1 files 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))
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage