bcomnes / jsonfeed-to-rss

📡Convert a jsonfeed to an RSS 2.0 feed with iTunes extensions
https://jsonfeed-to-rss.netlify.com
MIT License
38 stars 12 forks source link

Category field under Item not rendering #61

Closed dsmikeyorke closed 3 years ago

dsmikeyorke commented 3 years ago

First off, thanks for creating this package! We're working with a client that could greatly benefit from the <category> field under <item>. It looks like this is part of the RSS 2.0 spec but when I try adding category it does not render in the feed. Any recommendation on how to add this OR have the option to setup custom fields under <item>?

bcomnes commented 3 years ago

jsonfeed doesn't have a category field, but does have a tags array. I believe I mapped the item tags array to rss categories.

https://github.com/bcomnes/jsonfeed-to-rss/blob/master/jsonfeed-to-rss-object.js#L129

dsmikeyorke commented 3 years ago

@bcomnes Thanks for the quick response! Adding tags instead of category did the trick!