diff --git a/media handling/compine_mp3_to_m4b.py b/audiobook_metadata/combine_audiobookmedia_to_m4b.py old mode 100644 new mode 100755 similarity index 97% rename from media handling/compine_mp3_to_m4b.py rename to audiobook_metadata/combine_audiobookmedia_to_m4b.py index 2e94c1d..3dc632f --- a/media handling/compine_mp3_to_m4b.py +++ b/audiobook_metadata/combine_audiobookmedia_to_m4b.py @@ -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}")