mirror of
https://github.com/koreader/koreader
synced 2024-11-16 06:12:56 +00:00
b0ceab5b20
* Fix XML, introduce some better error messages, etc. See roygbyte/newsdownloader.koplugin for more info * Fix feed attribute saving snafu; Change menu labels; etc. Also: - Change default feed - Change "remove" label to "delete" - Hide menu after feed sync
40 lines
1.9 KiB
Lua
40 lines
1.9 KiB
Lua
return {--do NOT change this line
|
|
|
|
--HELP:
|
|
-- use syntax: {"http://your-url.com", limit=max_number_of_items_to_be_created, download_full_article=true/false},
|
|
|
|
-- remember to put coma at the end of each line!
|
|
|
|
-- 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
|
|
|
|
|
|
-- DETAILS:
|
|
-- set 'limit' to "0" means no limit.
|
|
|
|
-- '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)
|
|
|
|
-- '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)
|
|
|
|
-- '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.
|
|
|
|
-- comment out line ("--" at line start) to stop downloading source
|
|
|
|
|
|
-- LIST YOUR FEEDS HERE:
|
|
|
|
{ "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 = ""},
|
|
|
|
}--do NOT change this line
|