diff --git a/Cargo.toml b/Cargo.toml index 551ec8c..a96a541 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 diff --git a/README.org b/README.org index 09bc007..6487c6a 100644 --- a/README.org +++ b/README.org @@ -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]] diff --git a/src/anime/trackers.rs b/src/anime/trackers.rs index 0097485..4443e8b 100644 --- a/src/anime/trackers.rs +++ b/src/anime/trackers.rs @@ -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