2
0
mirror of https://github.com/koreader/koreader synced 2024-11-18 03:25:46 +00:00
koreader/plugins/newsdownloader.koplugin/feed_config.lua
2020-06-04 22:58:14 +02:00

43 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:
{ "http://feeds.reuters.com/Reuters/worldNews?format=xml", limit = 2, download_full_article=true, include_images=true, enable_filter=true},
{ "https://www.pcworld.com/index.rss", limit = 7 , download_full_article=false},
-- { "http://www.football.co.uk/international/rss.xml", limit = 2},
}--do NOT change this line