update mpv command

master
CptCaptain 4 years ago
parent d2ae892a70
commit 7ef6d0e767
  1. 2
      src/main.rs

@ -21,7 +21,7 @@ fn new(video: Form<Video>) -> Redirect {
if part.starts_with("https://"){
Command::new("/bin/env")
// .args(&[&video.link])
.args(&["DISPLAY=:0", "bash", "-c", &format!("mpv {link}", link=&part).to_string()])
.args(&["DISPLAY=:0", "bash", "-c", &format!("mpv --ytdl-format='bestvideo[height<=?4050]+bestaudio/best' {link}", link=&part).to_string()])
.output()
.expect("Failed to execute command");
}

Loading…
Cancel
Save