mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 12:12:00 -06:00
Extend function to get free file
This commit is contained in:
parent
e9b3088cde
commit
afab3826c9
6 changed files with 37 additions and 17 deletions
|
|
@ -178,8 +178,7 @@ impl Execute for Download {
|
|||
.to_string(),
|
||||
&format,
|
||||
)),
|
||||
)
|
||||
.0;
|
||||
);
|
||||
|
||||
let use_ffmpeg = if let Some(extension) = path.extension() {
|
||||
if extension != "ts" {
|
||||
|
|
@ -228,11 +227,7 @@ impl Execute for Download {
|
|||
}
|
||||
}
|
||||
|
||||
async fn download_ffmpeg(
|
||||
ctx: &Context,
|
||||
variant_data: VariantData,
|
||||
target: &Path,
|
||||
) -> Result<()> {
|
||||
async fn download_ffmpeg(ctx: &Context, variant_data: VariantData, target: &Path) -> Result<()> {
|
||||
let ffmpeg = Command::new("ffmpeg")
|
||||
.stdin(Stdio::piped())
|
||||
.stdout(Stdio::null())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue