mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 12:12:00 -06:00
Fmt
This commit is contained in:
parent
4cd46f19ac
commit
91f8a82ca4
3 changed files with 12 additions and 3 deletions
|
|
@ -68,7 +68,12 @@ impl Execute for Download {
|
|||
fn pre_check(&self) -> Result<()> {
|
||||
if has_ffmpeg() {
|
||||
debug!("FFmpeg detected")
|
||||
} else if PathBuf::from(&self.output).extension().unwrap_or_default().to_string_lossy() != "ts" {
|
||||
} else if PathBuf::from(&self.output)
|
||||
.extension()
|
||||
.unwrap_or_default()
|
||||
.to_string_lossy()
|
||||
!= "ts"
|
||||
{
|
||||
bail!("File extension is not '.ts'. If you want to use a custom file format, please install ffmpeg")
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue