Add possibility to use --all-audio
This commit is contained in:
@@ -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(
|
||||
|
Reference in New Issue
Block a user