mirror of
https://github.com/mrfluffy-dev/kami.git
synced 2026-01-17 04:50:32 +00:00
added condision check so that watching older episodes don't update anilist
This commit is contained in:
@@ -188,11 +188,14 @@ fn run_app<B: Backend>(terminal: &mut Terminal<B>, mut app: App) -> io::Result<(
|
|||||||
.unwrap();
|
.unwrap();
|
||||||
let link = anime_link(&app.title, app.ep);
|
let link = anime_link(&app.title, app.ep);
|
||||||
open_video((link.0, link.1));
|
open_video((link.0, link.1));
|
||||||
|
if app.ep > app.progress as u64 {
|
||||||
update_anime_progress(
|
update_anime_progress(
|
||||||
app.anime_id,
|
app.anime_id,
|
||||||
app.ep as usize,
|
app.ep as usize,
|
||||||
app.token.as_str(),
|
app.token.as_str(),
|
||||||
);
|
);
|
||||||
|
app.progress = app.ep as i32;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_ => {}
|
_ => {}
|
||||||
|
|||||||
Reference in New Issue
Block a user