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.
reviewable/pr11695/r1
Max Ignatenko 2 weeks ago committed by GitHub
parent c70c9f0905
commit 87c85bf94d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save