Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions elfeed.el
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,13 @@ This is a workaround for issues in `url-queue-retrieve'."
(concat "urn:sha1:" (sha1 (format "%s" (or content (float-time))))))

(defun elfeed--atom-content (entry)
"Get content string from ENTRY."
(let ((content-type (xml-query* (content :type) entry)))
"Get content string from ENTRY. If there is no content tag, use summary instead."
(let ((content-type (or (xml-query* (content :type) entry)
(xml-query* (summary :type) entry))))
(if (equal content-type "xhtml")
(with-temp-buffer
(let ((xhtml (cddr (xml-query* (content) entry))))
(let ((xhtml (cddr (or (xml-query* (content) entry)
(xml-query* (summary) entry)))))
(dolist (element xhtml)
(if (stringp element)
(insert element)
Expand Down