fix file output namming issue
This commit is contained in:
parent
5120e40963
commit
47842d92a9
@ -19,7 +19,7 @@ async fn main() -> Result<(), std::io::Error> {
|
||||
|
||||
// #[cfg(debug_assertions)]
|
||||
let filter = EnvFilter::builder()
|
||||
.parse("server=debug,poem=debug,tokio=warn")
|
||||
.parse("server=trace,poem=debug,tokio=warn")
|
||||
.expect("Could not create env filter.")
|
||||
;
|
||||
|
||||
@ -157,7 +157,6 @@ async fn download_url(Form(data): Form<Input>, state: Data<&Arc<AppData>>) -> po
|
||||
.arg("--no-playlist") // if video or playlist, choose video
|
||||
.arg("--restrict-filenames") // take special chars out
|
||||
.arg("--no-windows-filenames") // windows compatible file name
|
||||
.args(["--output","id"]) // if video or playlist, choose video
|
||||
.args(["--print","after_move:filename,id"]) // output filename
|
||||
.args(["-f", OutputFormat::Video.to_format()]) // format selector
|
||||
.arg(data.url.clone())
|
||||
@ -171,7 +170,7 @@ async fn download_url(Form(data): Form<Input>, state: Data<&Arc<AppData>>) -> po
|
||||
|
||||
match code {
|
||||
0 => {
|
||||
info!("Download done.");
|
||||
trace!("Download done.");
|
||||
let mut out = YtDlpOutput::from(stdout);
|
||||
|
||||
// You can potentially do post-processing directly in yt-dlp
|
||||
|
Loading…
Reference in New Issue
Block a user