Skip to content

Commit

Permalink
NewsDownloader: use <content:encoded> from RSS item, if available (#1…
Browse files Browse the repository at this point in the history
…1694)

This makes it work much nicer for feeds that provide the full content in the feed itself.
  • Loading branch information
imax9000 committed Apr 18, 2024
1 parent c70c9f0 commit 87c85bf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/newsdownloader.koplugin/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 87c85bf

Please sign in to comment.