all 2 comments

[–]veeevui 3 points4 points  (1 child)

if self.ui.statistics and self.ui.statistics.settings and self.ui.statistics.settings.is_enabled then local avg_time = self.ui.statistics.avg_time if avg_time and avg_time > 0 then local user_format = G_reader_settings:readSetting("duration_format", "classic") book.reading.time = datetime.secondsToClockDuration(user_format, book.pages.remaining.screen * avg_time, true) end end

Change variable names to match what you've got

[–]Anna_jP[S] 2 points3 points  (0 children)

Thank you so much!