diff --git a/scripts/library_run.py b/scripts/library_run.py index c07bbe5..7a2a219 100644 --- a/scripts/library_run.py +++ b/scripts/library_run.py @@ -1692,6 +1692,11 @@ def already_hevc(src, info, container="mp4"): def process(src, args, dest=None, origin=None): container = (getattr(args, "container", None) or "mp4").lower() + # `--dest` takes a FILE path. Refuse a directory HERE, before the encode: the install stage + # notices on its own, but only after a full encode has been paid for (measured 2026-11-01: one + # wasted 90 s on a clip, an hour on a real episode). + if dest and os.path.isdir(dest): + return ("FAIL install target is a directory: %s (`--dest` wants a file path)" % dest), None info = probe(src) if not info: return "FAIL unreadable", None