mirror of
https://github.com/mrfluffy-dev/kami.git
synced 2026-01-17 04:50:32 +00:00
changed readme and updated version number
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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]]
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user