mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 04:02:00 -06:00
Fix --default-subtitle causing no such file error (#98)
This commit is contained in:
parent
404aa496e1
commit
892407d1f0
1 changed files with 3 additions and 3 deletions
|
|
@ -632,10 +632,10 @@ fn generate_mkv(
|
|||
if let Some(default_subtitle) = &archive.default_subtitle {
|
||||
// if `--default_subtitle <locale>` is given set the default subtitle to the given locale
|
||||
if let Some(position) = subtitle_paths
|
||||
.into_iter()
|
||||
.position(|s| &s.1.locale == default_subtitle)
|
||||
.iter()
|
||||
.position(|(_, subtitle)| &subtitle.locale == default_subtitle)
|
||||
{
|
||||
command_args.push(format!("-disposition:s:{}", position))
|
||||
command_args.extend([format!("-disposition:s:{}", position), "default".to_string()])
|
||||
} else {
|
||||
command_args.extend(["-disposition:s:0".to_string(), "0".to_string()])
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue