made kami compatible with trackma

This commit is contained in:
Zastian Pretorius
2022-07-28 22:50:44 +01:00
parent dcc57d22a9
commit 7f34f62f5d
2 changed files with 5 additions and 1 deletions

View File

@@ -1,6 +1,10 @@
pub fn open_video(link: (String, String)) {
let title = link.1;
let title = title.replace("-", " ");
let arg: String = format!("--force-media-title={}", title);
let _ = std::process::Command::new("mpv")
.arg(link.0)
.arg(arg)
.output()
.expect("failed to open mpv");