remove vestigial junk
This commit is contained in:
parent
f211e9b520
commit
e8765c4b32
@ -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…
Reference in New Issue
Block a user