~ushin/ushin#195: 
Elfeed integration

Adam mentions the possibility of making Elfeed support Atom feeds that are hosted in a hyperdrive. What integration code do we need to add?

Also see #172.

Status
REPORTED
Submitter
~ushin
Assigned to
No-one
Submitted
9 months ago
Updated
9 months ago
Labels
hyperdrive.el

~ushin 9 months ago*

It appears that this funcitonality works OOTB if you set elfeed-use-curl to nil, in which case url-retrive DTRT because in hyperdrive.el, we have added to url-scheme-registry. However, the default value of elfeed-use-curl is t, which uses elfeed-curl-enqueue, which doesn't know how to handle hyper:// links. Perhaps some advice would work, something like the following (which doesn't yet work):

(with-eval-after-load 'elfeed
  (defun h//elfeed-around-advice (fn url)
    "Call FN with httpified URL.
Intended to be used as :around advice for `elfeed'."
    (funcall fn (hyperdrive--httpify-url url)))

  (advice-add 'elfeed-update-feed :around #'h//elfeed-around-advice))
Register here or Log in to comment, or comment via email.