From 274dd6dab33bc4f34df3c2aca87c5f0e0a31ba9f Mon Sep 17 00:00:00 2001 From: Frans de Jonge Date: Thu, 9 Jan 2025 19:10:15 +0100 Subject: [PATCH] [plugin] NewsDownloader: use first feed description if it's a table in RSS (#13032) Similar to the logic for Atom in #12959. Reported in https://github.com/koreader/koreader/issues/12953#issuecomment-2580784621 Sample feed https://www.engadget.com/rss.xml --- plugins/newsdownloader.koplugin/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/newsdownloader.koplugin/main.lua b/plugins/newsdownloader.koplugin/main.lua index 857b1d6e4..48e2f9c32 100644 --- a/plugins/newsdownloader.koplugin/main.lua +++ b/plugins/newsdownloader.koplugin/main.lua @@ -523,7 +523,7 @@ function NewsDownloader:processFeed(feed_type, feeds, cookies, limit, download_f local feed_description if feed_type == FEED_TYPE_RSS then feed_title = feed.title - feed_description = feed.description + feed_description = feed.description[1] or feed.description --- @todo This should select the one with type="html" if there is a choice. if feed["content:encoded"] ~= nil then -- Spec: https://web.resource.org/rss/1.0/modules/content/ feed_description = feed["content:encoded"]