mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
NewsDownloader: Compatibility for users with previous configuration files (#3445)
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
return {
|
||||
-- list your feeds here:
|
||||
|
||||
{ "http://feeds.reuters.com/Reuters/worldNews?format=xml", limit = 2, download_full_article=false},
|
||||
{ "http://feeds.reuters.com/Reuters/worldNews?format=xml", limit = 2, download_full_article=true},
|
||||
|
||||
{ "https://www.pcworld.com/index.rss", limit = 7 , download_full_article=true},
|
||||
{ "https://www.pcworld.com/index.rss", limit = 7 , download_full_article=false},
|
||||
|
||||
-- comment out line ("--" at line start) to stop downloading source
|
||||
--{ "http://www.football.co.uk/international/rss.xml", limit = 0 , download_full_article=true},
|
||||
--{ "http://www.football.co.uk/international/rss.xml", limit = 0 , download_full_article=false},
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -170,7 +170,7 @@ function NewsDownloader:loadConfigAndProcessFeeds()
|
||||
for idx, feed in ipairs(feed_config) do
|
||||
local url = feed[1]
|
||||
local limit = feed.limit
|
||||
local download_full_article = feed.download_full_article
|
||||
local download_full_article = feed.download_full_article == nil or feed.download_full_article
|
||||
if url and limit then
|
||||
info = InfoMessage:new{ text = T(_("Processing: %1"), url) }
|
||||
UIManager:show(info)
|
||||
|
||||
Reference in New Issue
Block a user