12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- const fields = module.exports = {};
- fields.feed = [
- ['author', 'creator'],
- ['dc:publisher', 'publisher'],
- ['dc:creator', 'creator'],
- ['dc:source', 'source'],
- ['dc:title', 'title'],
- ['dc:type', 'type'],
- 'title',
- 'description',
- 'author',
- 'pubDate',
- 'webMaster',
- 'managingEditor',
- 'generator',
- 'link',
- 'language',
- 'copyright',
- 'lastBuildDate',
- 'docs',
- 'generator',
- 'ttl',
- 'rating',
- 'skipHours',
- 'skipDays',
- ];
- fields.item = [
- ['author', 'creator'],
- ['dc:creator', 'creator'],
- ['dc:date', 'date'],
- ['dc:language', 'language'],
- ['dc:rights', 'rights'],
- ['dc:source', 'source'],
- ['dc:title', 'title'],
- 'title',
- 'link',
- 'pubDate',
- 'author',
- 'summary',
- ['content:encoded', 'content:encoded', {includeSnippet: true}],
- 'enclosure',
- 'dc:creator',
- 'dc:date',
- 'comments',
- ];
- var mapItunesField = function(f) {
- return ['itunes:' + f, f];
- }
- fields.podcastFeed = ([
- 'author',
- 'subtitle',
- 'summary',
- 'explicit'
- ]).map(mapItunesField);
- fields.podcastItem = ([
- 'author',
- 'subtitle',
- 'summary',
- 'explicit',
- 'duration',
- 'image',
- 'episode',
- 'image',
- 'season',
- 'keywords',
- 'episodeType'
- ]).map(mapItunesField);
|