feed icon indicating copy to clipboard operation
feed copied to clipboard

How to add an enclosure?

Open nicwise opened this issue 5 years ago • 4 comments
trafficstars

Is your feature request related to a problem? Please describe.

Pretty much just want to add one enclosure tag, with a url and type. Can't find anything in the typings for it.

Describe the solution you'd like

item.enclosure = {
}

maybe?

It might be there, but I can't find it :(

nicwise avatar Jan 01 '20 23:01 nicwise

I could really use this as well. Otherwise I guess I will need to use another JavaScript RSS library...

edsu avatar Jan 25 '20 03:01 edsu

@nicwise Thanks for the message - finally found some time to have a look at issues / PRs during this covid-19 isolation.

Can you provide literature supporting the application of this for JSON, Atom and RSS please?

(or @endquote)

Thanks

jpmonette avatar Mar 18 '20 22:03 jpmonette

JSON feed uses an "attachments" array: https://jsonfeed.org/version/1

Atom uses <link rel="enclosure" />: https://tools.ietf.org/html/rfc4287 https://www.ibm.com/developerworks/library/x-atom10/index.html

RSS enclosure spec: http://www.rssboard.org/rss-profile#element-channel-item-enclosure

JSON and Atom support multiple enclosures, RSS doesn't really.

endquote avatar Mar 19 '20 03:03 endquote

image is used for adding enclosures in rss2. https://github.com/jpmonette/feed/pull/120 this would allow audio and video alternatives :)

decebal avatar May 20 '20 23:05 decebal