diff --git a/scripts/clip.py b/scripts/clip.py index abf2b3f..e112dec 100644 --- a/scripts/clip.py +++ b/scripts/clip.py @@ -69,7 +69,7 @@ def run_clip(src, dst, start, duration, mode, lang, model, style, no_subs, quali # 2. Subtitles (opcijsko) if no_subs: - os.replace(reframed, dst) + shutil.move(str(reframed), str(dst)) else: cmd = [ "python3", str(SCRIPT_DIR / "subtitle.py"), @@ -82,7 +82,7 @@ def run_clip(src, dst, start, duration, mode, lang, model, style, no_subs, quali r = subprocess.run(cmd) if r.returncode != 0: print(f"❌ Subtitle napaka — shranim brez", file=sys.stderr) - os.replace(reframed, dst) + shutil.move(str(reframed), str(dst)) return True finally: import shutil