remove vestigial junk

master
CptCaptain 4 years ago
parent f211e9b520
commit e8765c4b32
  1. 3
      src/main.rs

@ -14,10 +14,7 @@ struct Video {
#[post("/new", data = "<video>")]
fn new(video: Form<Video>) -> Redirect {
// let mpv_script_path = "/home/hans/mpv_send.sh";
if video.link.starts_with("https://"){
// Command::new(mpv_script_path).arg(&video.link).output().expect("Failed to execute command");
// Command::new(mpv_script_path).arg(&video.link).output().expect("Failed to execute command");
Command::new("/bin/env").args(&["bash", "-c", &format!("mpv {link}", link=&video.link).to_string()]).output().expect("Failed to execute command");
}
Redirect::to("/")

Loading…
Cancel
Save