2018-08-07 19:03:43 +00:00
|
|
|
return {--do NOT change this line
|
2017-09-24 16:30:45 +00:00
|
|
|
|
2018-08-07 19:03:43 +00:00
|
|
|
--HELP:
|
|
|
|
-- use syntax: {"http://your-url.com", limit=max_number_of_items_to_be_created, download_full_article=true/false},
|
2017-10-26 20:44:03 +00:00
|
|
|
|
2018-08-07 19:03:43 +00:00
|
|
|
-- remember to put coma at the end of each line!
|
2017-10-26 20:44:03 +00:00
|
|
|
|
2018-08-07 19:03:43 +00:00
|
|
|
-- you can also edit this file in external text editor. Config file is located under:
|
|
|
|
-- <your_download_directory>/feed_config.lua
|
|
|
|
-- default: <koreader_dir>/news/feed_config.lua
|
2017-10-26 20:44:03 +00:00
|
|
|
|
|
|
|
|
2018-08-07 19:03:43 +00:00
|
|
|
-- DETAILS:
|
|
|
|
-- set 'limit' to "0" means no limit.
|
2017-10-26 20:44:03 +00:00
|
|
|
|
2018-08-07 19:03:43 +00:00
|
|
|
-- 'download_full_article=true' - means download full article (may not always work correctly)
|
|
|
|
-- 'download_full_article=false' - means use only feed description to create feeds (usually only beginning of the article)
|
|
|
|
-- default value is 'true' (if no 'download_full_article' entry)
|
2017-10-26 20:44:03 +00:00
|
|
|
|
2019-04-17 20:26:56 +00:00
|
|
|
-- 'include_images=true' - means download any images on the page and inlude them in the article
|
|
|
|
-- 'include_images=false' - means ignore any images, only download the text (faster download, smaller file sizes)
|
|
|
|
-- default value is 'false' (if no 'include_images' entry)
|
|
|
|
|
2020-06-04 20:58:14 +00:00
|
|
|
-- 'enable_filter=true' - means filter using a CSS selector to delimit part of the page to just that (does not apply if download_full_article=false)
|
|
|
|
-- 'enable_filter=false' - means no such filtering and including the full page
|
|
|
|
-- default value is 'false'
|
|
|
|
|
|
|
|
-- 'filter_element="name_of_css.element.class" - means to filter the chosen CSS selector, it can be easily picked using a modern web browser
|
|
|
|
-- The default value is empty. The default list of common selectors is used as fallback if this value is set.
|
|
|
|
|
2018-08-07 19:03:43 +00:00
|
|
|
-- comment out line ("--" at line start) to stop downloading source
|
2017-10-26 20:44:03 +00:00
|
|
|
|
|
|
|
|
2018-08-07 19:03:43 +00:00
|
|
|
-- LIST YOUR FEEDS HERE:
|
2017-10-26 20:44:03 +00:00
|
|
|
|
2021-09-13 19:04:06 +00:00
|
|
|
{ "https://github.com/koreader/koreader/releases.atom", limit = 3, download_full_article=true, include_images=false, enable_filter=true, filter_element = "div.release-main-section"},
|
|
|
|
{ "https://ourworldindata.org/atom.xml", limit = 5 , download_full_article=true, include_images=true, enable_filter=false, filter_element = ""},
|
2017-10-26 20:44:03 +00:00
|
|
|
|
2018-08-07 19:03:43 +00:00
|
|
|
}--do NOT change this line
|