aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-05-22 16:20:46 +0200
committerdec05eba <dec05eba@protonmail.com>2022-05-22 16:20:46 +0200
commit6e9bfd6571adf151e4e7fe4cb63f731314ebeff6 (patch)
tree5b5f7317ff542dca621c19cf9c9c2f420a2492e7 /src
parent0333a586566653cfbc501f909f5a10dc082681d2 (diff)
local-manga fix manga chapter updated
Diffstat (limited to 'src')
-rw-r--r--src/plugins/LocalManga.cpp5
1 files changed, 4 insertions, 1 deletions
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));
}