feed
feed copied to clipboard
How to add an enclosure?
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 :(
I could really use this as well. Otherwise I guess I will need to use another JavaScript RSS library...
@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
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.
image is used for adding enclosures in rss2.
https://github.com/jpmonette/feed/pull/120 this would allow audio and video alternatives :)