mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 04:02:00 -06:00
Add more output format options (#284)
This commit is contained in:
parent
0da81a4814
commit
19935df545
3 changed files with 79 additions and 5 deletions
|
|
@ -39,12 +39,16 @@ pub struct Download {
|
|||
{series_name} → Name of the series\n \
|
||||
{season_name} → Name of the season\n \
|
||||
{audio} → Audio language of the video\n \
|
||||
{resolution} → Resolution of the video\n \
|
||||
{width} → Width of the video\n \
|
||||
{height} → Height of the video\n \
|
||||
{season_number} → Number of the season\n \
|
||||
{episode_number} → Number of the episode\n \
|
||||
{relative_episode_number} → Number of the episode relative to its season\n \
|
||||
{sequence_number} → Like '{episode_number}' but without possible non-number characters\n \
|
||||
{relative_sequence_number} → Like '{relative_episode_number}' but with support for episode 0's and .5's\n \
|
||||
{release_year} → Release year of the video\n \
|
||||
{release_month} → Release month of the video\n \
|
||||
{release_day} → Release day of the video\n \
|
||||
{series_id} → ID of the series\n \
|
||||
{season_id} → ID of the season\n \
|
||||
{episode_id} → ID of the episode")]
|
||||
|
|
@ -153,6 +157,15 @@ 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")
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue