move combine audiobooks script

chmod
uncomment delete lines
This commit is contained in:
Lucas Vivo committed 2026-10-07 06:58:25 +02:00
1 parent ce656b6970
commit 1af47022e9
1 file changed
+3 -3
@@ -122,7 +122,7 @@ def create_m4b(root_path: Path, book_dir: Path) -> None:
text=True,
)
if result.returncode == 234:
log_message(f"[ERROR] {result.returncode}")
log_message(f"[ERROR] {result.returncode} retrying with aac encoder")
result = subprocess.run(
cmd_backup,
stdout=log,
@@ -132,8 +132,8 @@ def create_m4b(root_path: Path, book_dir: Path) -> None:
if result.returncode == 0:
log_message("Success, delete media files")
output_file_tmp.rename(output_file_final)
#for media in media_files:
# media.unlink()
for media in media_files:
media.unlink()
else:
log_message(f"FAILED: Code: {result.returncode}, Stderr: {result.stderr}")