From 6e9bfd6571adf151e4e7fe4cb63f731314ebeff6 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 22 May 2022 16:20:46 +0200 Subject: local-manga fix manga chapter updated --- src/plugins/LocalManga.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/plugins/LocalManga.cpp b/src/plugins/LocalManga.cpp index 3fc7269..3bb3c93 100644 --- a/src/plugins/LocalManga.cpp +++ b/src/plugins/LocalManga.cpp @@ -129,6 +129,9 @@ namespace QuickMedia { } } + if(!only_get_coverpage) + file_get_last_modified_time_seconds(filepath.data.c_str(), &local_manga_chapter.modified_time_seconds); + chapter_list.push_back(std::move(local_manga_chapter)); return only_include_latest ? false : true; }; @@ -356,7 +359,7 @@ namespace QuickMedia { for(const LocalMangaChapter &local_manga_chapter : chapters) { auto body_item = BodyItem::create(local_manga_chapter.name); body_item->url = local_manga_chapter.name; - body_item->set_description("Updated " + seconds_to_relative_time_str(time_now - manga_it->modified_time_seconds)); + body_item->set_description("Updated " + seconds_to_relative_time_str(time_now - local_manga_chapter.modified_time_seconds)); body_item->set_description_color(get_theme().faded_text_color); chapters_items.push_back(std::move(body_item)); } -- cgit v1.2.3