mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user