Skip to content
This repository has been archived by the owner on Jul 4, 2024. It is now read-only.

Commit

Permalink
Remove deprecated {resolution} output format option
Browse files Browse the repository at this point in the history
  • Loading branch information
bytedream committed Apr 8, 2024
1 parent 77103ff commit 18534b2
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 22 deletions.
9 changes: 0 additions & 9 deletions crunchy-cli-core/src/archive/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

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.subtitle = all_locale_in_locales(self.subtitle.clone());

Expand Down
9 changes: 0 additions & 9 deletions crunchy-cli-core/src/download/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
self.audio = resolve_locales(&[self.audio.clone()]).remove(0);
self.subtitle = self
Expand Down
4 changes: 0 additions & 4 deletions crunchy-cli-core/src/utils/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -446,10 +446,6 @@ impl Format {
universal,
),
)
.replace(
"{resolution}",
&sanitize(self.resolution.to_string(), true, universal),
)
.replace(
"{width}",
&sanitize(self.resolution.width.to_string(), true, universal),
Expand Down

0 comments on commit 18534b2

Please sign in to comment.