From 17869473e1963cd7ced3a114df9bd5e591c01514 Mon Sep 17 00:00:00 2001 From: Frans de Jonge Date: Mon, 24 Nov 2025 23:03:48 +0100 Subject: [PATCH] [plugin] NewsDownloader: support content:encoded with attributes (#14660) Fixes #14648. Same fix as #13799. --- 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 eaf36503a..8b56b69cd 100644 --- a/plugins/newsdownloader.koplugin/main.lua +++ b/plugins/newsdownloader.koplugin/main.lua @@ -685,7 +685,7 @@ function NewsDownloader:processFeed(feed_type, feeds, cookies, http_auth, limit, feed_description = feed.description and 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"] + feed_description = feed["content:encoded"] and feed["content:encoded"][1] or feed["content:encoded"] end elseif feed_type == FEED_TYPE_ATOM then feed_title = feed.title and feed.title[1] or feed.title