|
|
|
@ -7,7 +7,7 @@ local lfs = require("libs/libkoreader-lfs")
|
|
|
|
|
local logger = require("logger")
|
|
|
|
|
|
|
|
|
|
-- Date at which the last migration snippet was added
|
|
|
|
|
local CURRENT_MIGRATION_DATE = 20220930
|
|
|
|
|
local CURRENT_MIGRATION_DATE = 20221027
|
|
|
|
|
|
|
|
|
|
-- Retrieve the date of the previous migration, if any
|
|
|
|
|
local last_migration_date = G_reader_settings:readSetting("last_migration_date", 0)
|
|
|
|
@ -479,5 +479,15 @@ if last_migration_date < 20220930 then
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
-- Extend the 20220205 hack to *all* the devices flagged as unreliable...
|
|
|
|
|
if last_migration_date < 20221027 then
|
|
|
|
|
logger.info("Performing one-time migration for 20221027")
|
|
|
|
|
|
|
|
|
|
local Device = require("device")
|
|
|
|
|
if Device:isKobo() and not Device:hasReliableMxcWaitFor() then
|
|
|
|
|
G_reader_settings:makeFalse("followed_link_marker")
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
-- We're done, store the current migration date
|
|
|
|
|
G_reader_settings:saveSetting("last_migration_date", CURRENT_MIGRATION_DATE)
|
|
|
|
|