changed readme and updated version number

This commit is contained in:
Zastian Pretorius
2022-08-08 18:11:31 +01:00
parent 62de278e8d
commit 84aa95aa6e
3 changed files with 4 additions and 6 deletions

View File

@@ -2,7 +2,7 @@
name = "kami" name = "kami"
author = "mrfluffy-dev" author = "mrfluffy-dev"
license = "GPL-3.0" license = "GPL-3.0"
version = "0.5.0" version = "0.5.1"
edition = "2021" edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@@ -8,8 +8,9 @@
- [[#Windows][Windows]] - [[#Windows][Windows]]
4. [[#Honorable-mentions][Honorable mentions]] 4. [[#Honorable-mentions][Honorable mentions]]
* Why use kami * 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. Also rust is fast as fuck boiiiii.
It can keep your anime tracking up to date with anilist.
* Dependencies * Dependencies
1. [[https://github.com/sharkdp/bat][bat]] 1. [[https://github.com/sharkdp/bat][bat]]
2. [[https://mpv.io/][mpv]] 2. [[https://mpv.io/][mpv]]

View File

@@ -130,12 +130,9 @@ pub fn get_user_anime_progress(anime_id: i32, token: &str) -> i32 {
.send() .send()
.unwrap() .unwrap()
.text(); .text();
//println!("{}", resp);
let regex = regex::Regex::new(r#"progress":(.*?)}"#).unwrap(); let regex = regex::Regex::new(r#"progress":(.*?)}"#).unwrap();
let resp: String = resp.as_ref().unwrap().to_string(); let resp: String = resp.as_ref().unwrap().to_string();
//if resp contains "404"set progress to 1 if resp.contains("errors") {
// else set progress to the number in the regex
if resp.contains("404") {
1 1
} else { } else {
let progress = regex let progress = regex