refactor: restructure

This commit is contained in:
justchokingaround
2022-07-10 19:00:23 +02:00
parent bbd99ad5f7
commit e99dc19ea3
12 changed files with 522 additions and 413 deletions

9
src/anime/player.rs Normal file
View File

@@ -0,0 +1,9 @@
pub fn open_video(link: (String, String)) {
let _ = std::process::Command::new("mpv")
.arg(link.0)
.output()
.expect("failed to open mpv");
// clear terminal
print!("\x1b[2J\x1b[1;1H");
}