From ce1d9a88e3956690a7eb6157eed89b141fdf3228 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 14 Feb 2022 01:44:34 +0100 Subject: local-manga: append automedia seen when going to next chapter --- src/plugins/LocalManga.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/plugins') diff --git a/src/plugins/LocalManga.cpp b/src/plugins/LocalManga.cpp index 34a2983..83dd983 100644 --- a/src/plugins/LocalManga.cpp +++ b/src/plugins/LocalManga.cpp @@ -478,10 +478,6 @@ namespace QuickMedia { } result_tabs.push_back(Tab{nullptr, std::make_unique(program, content_title, args.url, args.url, thumbnail_url), nullptr}); - - if(is_program_executable_by_name("automedia")) - append_seen_manga_to_automedia_seen(content_url + "/" + args.url); - return PluginResult::OK; } @@ -502,6 +498,9 @@ namespace QuickMedia { chapter_image_urls.push_back(local_manga_page.path.data); } + if(is_program_executable_by_name("automedia")) + append_seen_manga_to_automedia_seen(manga_name + "/" + url); + num_images = chapter_image_urls.size(); return ImageResult::OK; } -- cgit v1.2.3