made anilist progress update if there is only one episode

This commit is contained in:
Zastian Pretorius
2022-10-11 12:12:35 +01:00
parent 3ff0a47ff7
commit cc0945e29a

View File

@@ -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));