mirror of
https://github.com/mrfluffy-dev/kami.git
synced 2026-01-17 04:50:32 +00:00
made anilist progress update if there is only one episode
This commit is contained in:
@@ -168,6 +168,7 @@ fn run_app<B: Backend>(terminal: &mut Terminal<B>, mut app: App) -> io::Result<(
|
||||
if ep_range == 1 {
|
||||
let link = anime_link(&app.title, 1);
|
||||
open_video((link.0, link.1));
|
||||
update_anime_progress(app.anime_id, 1, app.token.as_str());
|
||||
} else {
|
||||
for ep in 1..ep_range + 1 {
|
||||
app.messages.push(format!("Episode {}", ep));
|
||||
|
||||
Reference in New Issue
Block a user