mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 04:02:00 -06:00
Remove deprecated {resolution} output format option
This commit is contained in:
parent
77103ff1f1
commit
18534b259b
3 changed files with 0 additions and 22 deletions
|
|
@ -242,15 +242,6 @@ impl Execute for Archive {
|
||||||
warn!("Using `--sync-start` without `--ffmpeg-preset` might produce worse sync results than with `--ffmpeg-preset` set")
|
warn!("Using `--sync-start` without `--ffmpeg-preset` might produce worse sync results than with `--ffmpeg-preset` set")
|
||||||
}
|
}
|
||||||
|
|
||||||
if self.output.contains("{resolution}")
|
|
||||||
|| self
|
|
||||||
.output_specials
|
|
||||||
.as_ref()
|
|
||||||
.map_or(false, |os| os.contains("{resolution}"))
|
|
||||||
{
|
|
||||||
warn!("The '{{resolution}}' format option is deprecated and will be removed in a future version. Please use '{{width}}' and '{{height}}' instead")
|
|
||||||
}
|
|
||||||
|
|
||||||
self.audio = all_locale_in_locales(self.audio.clone());
|
self.audio = all_locale_in_locales(self.audio.clone());
|
||||||
self.subtitle = all_locale_in_locales(self.subtitle.clone());
|
self.subtitle = all_locale_in_locales(self.subtitle.clone());
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -187,15 +187,6 @@ impl Execute for Download {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if self.output.contains("{resolution}")
|
|
||||||
|| self
|
|
||||||
.output_specials
|
|
||||||
.as_ref()
|
|
||||||
.map_or(false, |os| os.contains("{resolution}"))
|
|
||||||
{
|
|
||||||
warn!("The '{{resolution}}' format option is deprecated and will be removed in a future version. Please use '{{width}}' and '{{height}}' instead")
|
|
||||||
}
|
|
||||||
|
|
||||||
if let Some(language_tagging) = &self.language_tagging {
|
if let Some(language_tagging) = &self.language_tagging {
|
||||||
self.audio = resolve_locales(&[self.audio.clone()]).remove(0);
|
self.audio = resolve_locales(&[self.audio.clone()]).remove(0);
|
||||||
self.subtitle = self
|
self.subtitle = self
|
||||||
|
|
|
||||||
|
|
@ -446,10 +446,6 @@ impl Format {
|
||||||
universal,
|
universal,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
.replace(
|
|
||||||
"{resolution}",
|
|
||||||
&sanitize(self.resolution.to_string(), true, universal),
|
|
||||||
)
|
|
||||||
.replace(
|
.replace(
|
||||||
"{width}",
|
"{width}",
|
||||||
&sanitize(self.resolution.width.to_string(), true, universal),
|
&sanitize(self.resolution.width.to_string(), true, universal),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue