mirror of
https://github.com/denizsafak/abogen.git
synced 2026-07-18 13:40:27 +02:00
feat: Add format specification for m4b, mp4, and m4a files in metadata embedding
This commit is contained in:
@@ -517,6 +517,8 @@ def _embed_m4b_metadata(
|
||||
command += ["-movflags", "+faststart+use_metadata_tags"]
|
||||
|
||||
temp_output = audio_path.with_suffix(audio_path.suffix + ".tmp")
|
||||
if audio_path.suffix.lower() in {".m4b", ".mp4", ".m4a"}:
|
||||
command += ["-f", "mp4"]
|
||||
command.append(str(temp_output))
|
||||
|
||||
process = create_process(command, text=True)
|
||||
|
||||
Reference in New Issue
Block a user