mirror of
https://github.com/mrfluffy-dev/kami.git
synced 2026-01-17 12:50:32 +00:00
changed readme and updated version number
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
name = "kami"
|
||||
author = "mrfluffy-dev"
|
||||
license = "GPL-3.0"
|
||||
version = "0.5.0"
|
||||
version = "0.5.1"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
@@ -8,8 +8,9 @@
|
||||
- [[#Windows][Windows]]
|
||||
4. [[#Honorable-mentions][Honorable mentions]]
|
||||
* Why use kami
|
||||
well its a fast and easy way to watch anime and read light novels right in your terminal no need to open a browser.
|
||||
Well its a fast and easy way to watch anime and read light novels right in your terminal no need to open a browser.
|
||||
Also rust is fast as fuck boiiiii.
|
||||
It can keep your anime tracking up to date with anilist.
|
||||
* Dependencies
|
||||
1. [[https://github.com/sharkdp/bat][bat]]
|
||||
2. [[https://mpv.io/][mpv]]
|
||||
|
||||
@@ -130,12 +130,9 @@ pub fn get_user_anime_progress(anime_id: i32, token: &str) -> i32 {
|
||||
.send()
|
||||
.unwrap()
|
||||
.text();
|
||||
//println!("{}", resp);
|
||||
let regex = regex::Regex::new(r#"progress":(.*?)}"#).unwrap();
|
||||
let resp: String = resp.as_ref().unwrap().to_string();
|
||||
//if resp contains "404"set progress to 1
|
||||
// else set progress to the number in the regex
|
||||
if resp.contains("404") {
|
||||
if resp.contains("errors") {
|
||||
1
|
||||
} else {
|
||||
let progress = regex
|
||||
|
||||
Reference in New Issue
Block a user