From bb98cbf612e31b71ad361c42cf24ca517d7a0b1d Mon Sep 17 00:00:00 2001 From: hius07 <62179190+hius07@users.noreply.github.com> Date: Mon, 18 Mar 2024 18:35:35 +0200 Subject: [PATCH] ReaderStatus: update status modification time (#11568) In the "End of the book" action. Closes #11564 (No idea how we got a book without modification time but the time stamp must be updated in any case) --- frontend/apps/reader/modules/readerstatus.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/apps/reader/modules/readerstatus.lua b/frontend/apps/reader/modules/readerstatus.lua index 56ea1ec69..1d4e984c0 100644 --- a/frontend/apps/reader/modules/readerstatus.lua +++ b/frontend/apps/reader/modules/readerstatus.lua @@ -219,6 +219,7 @@ end -- Otherwise we change status from reading/abandoned to complete or from complete to reading. function ReaderStatus:onMarkBook(mark_read) self.summary.status = (not mark_read and self.summary.status == "complete") and "reading" or "complete" + self.summary.modified = os.date("%Y-%m-%d", os.time()) -- If History is called over Reader, it will read the file to get the book status, so save and flush self.settings:saveSetting("summary", self.summary) self.settings:flush()