NewsDownloader: use <content:encoded> from RSS item, if available (#11694)

This makes it work much nicer for feeds that provide the full content in the feed itself.
This commit is contained in:
Max Ignatenko
2024-04-18 12:24:08 +01:00
committed by GitHub
parent c70c9f0905
commit 87c85bf94d

View File

@@ -493,6 +493,10 @@ function NewsDownloader:processFeed(feed_type, feeds, limit, download_full_artic
local feed_description
if feed_type == FEED_TYPE_RSS then
feed_description = feed.description
if feed["content:encoded"] ~= nil then
-- Spec: https://web.resource.org/rss/1.0/modules/content/
feed_description = feed["content:encoded"]
end
else
feed_description = feed.summary
end