epub notes

This commit is contained in:
Tangent / Rose / Nebula Rosa 2024-11-05 09:42:00 -07:00
parent 7ceb73f9a5
commit 633dc71143

View File

@ -24,7 +24,7 @@ Configuration example:
"author": "Name", "author": "Name",
"title": "Book", "title": "Book",
"keywords": ["fantasy", "dragon", "isekai"], "keywords": ["fantasy", "dragon", "isekai"],
"base_url": "https://www.literotica.com/s/title-ch-", "base_url": "https://www.literotica.com/s/title-ch-", -- not required if only one section
"first_section_url": "https://www.literotica.com/s/title", "first_section_url": "https://www.literotica.com/s/title",
"sections": { "sections": {
"start": 1, "start": 1,
@ -72,7 +72,7 @@ local function get_config()
config.sections.start = 1 config.sections.start = 1
config.sections.finish = #config.sections config.sections.finish = #config.sections
config.manually_specified_sections = true -- decided to make this part of the config spec, but it's set here again just in case config.manually_specified_sections = true -- decided to make this part of the config spec, but it's set here again just in case
config.base_url = "http://example.com/" -- must be defined to prevent errors; discarded for this use case config.base_url = "http://example.com/" -- must be defined to prevent errors; it will be manipulated and ignored in this use case
end end
if #config.page_counts ~= config.sections.finish - config.sections.start + 1 then if #config.page_counts ~= config.sections.finish - config.sections.start + 1 then