Compare commits

..

No commits in common. "47842d92a9d023873dc4668961afc867978c1c78" and "458e83a83d51a6e423cfef3c025906735f34f4ed" have entirely different histories.

2 changed files with 5 additions and 4 deletions

View File

@ -19,7 +19,7 @@ async fn main() -> Result<(), std::io::Error> {
// #[cfg(debug_assertions)]
let filter = EnvFilter::builder()
.parse("server=trace,poem=debug,tokio=warn")
.parse("server=debug,poem=debug,tokio=warn")
.expect("Could not create env filter.")
;
@ -148,7 +148,7 @@ async fn download_url(Form(data): Form<Input>, state: Data<&Arc<AppData>>) -> po
.collect();
}
if domain == "youtube.com" || domain == "youtu.be" {
if domain == "youtube.com" || domain == "yout.be" {
debug!("Downloading {} to {} format.", data.url, data.output.to_format());
match Command::new("yt-dlp")
@ -157,6 +157,7 @@ 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())
@ -170,7 +171,7 @@ async fn download_url(Form(data): Form<Input>, state: Data<&Arc<AppData>>) -> po
match code {
0 => {
trace!("Download done.");
info!("Download done.");
let mut out = YtDlpOutput::from(stdout);
// You can potentially do post-processing directly in yt-dlp

View File

@ -33,7 +33,7 @@ input[type="password"], [type="text"] {
input[type="text"]::placeholder {
text-align: center;
color: #aaaaaa;
color: #dddddd;
}
textarea, input {