Add possibility to use --all-audio

This commit is contained in:
2024-03-19 14:56:18 +01:00
parent 13c7bde679
commit b5b2f580fa
2 changed files with 10 additions and 4 deletions

View File

@@ -132,15 +132,21 @@ class Dvd:
"HandBrakeCLI",
"--preset",
handbrake_preset,
"--audio-lang-list",
HANDBRAKE_AUDIO_LANG_LIST,
"--first-audio",
"--input",
self.dvd_path,
"--output",
output_file,
]
if HANDBRAKE_AUDIO_LANG_LIST.strip() == "":
args += ["--all-audio"]
else:
args += [
"--audio-lang-list",
HANDBRAKE_AUDIO_LANG_LIST,
"--first-audio"]
if os.path.exists(self.nodvdnav_file):
args += ["--no-dvdnav"]
self.append_line_to_logfile(