NewsDownloader: Compatibility for users with previous configuration files (#3445)

pull/3449/head
mwoz123 7 years ago committed by Frans de Jonge
parent 1ba316aff0
commit 456e31a358

@ -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)

Loading…
Cancel
Save