mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 12:12:00 -06:00
(Re-)enable -l all for archive (#110)
This commit is contained in:
parent
17233f2fd2
commit
3dd8385aac
4 changed files with 27 additions and 10 deletions
|
|
@ -1,7 +1,7 @@
|
|||
use crate::cli::log::tab_info;
|
||||
use crate::cli::utils::{
|
||||
download_segments, find_multiple_seasons_with_same_number, find_resolution,
|
||||
interactive_season_choosing, FFmpegPreset,
|
||||
all_locale_in_locales, download_segments, find_multiple_seasons_with_same_number,
|
||||
find_resolution, interactive_season_choosing, FFmpegPreset,
|
||||
};
|
||||
use crate::utils::context::Context;
|
||||
use crate::utils::format::Format;
|
||||
|
|
@ -132,7 +132,7 @@ pub struct Archive {
|
|||
|
||||
#[async_trait::async_trait(?Send)]
|
||||
impl Execute for Archive {
|
||||
fn pre_check(&self) -> Result<()> {
|
||||
fn pre_check(&mut self) -> Result<()> {
|
||||
if !has_ffmpeg() {
|
||||
bail!("FFmpeg is needed to run this command")
|
||||
} else if PathBuf::from(&self.output)
|
||||
|
|
@ -151,6 +151,9 @@ impl Execute for Archive {
|
|||
warn!("Skipping 'nvidia' hardware acceleration preset since no other codec preset was specified")
|
||||
}
|
||||
|
||||
self.locale = all_locale_in_locales(self.locale.clone());
|
||||
self.subtitle = all_locale_in_locales(self.subtitle.clone());
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue