Skip to content

Commit 300ae34

Browse files
krazyjakeerbren
authored andcommitted
support dc:creator & dc:date (rbren#24)
1 parent 0a796dd commit 300ae34

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ var ITEM_FIELDS = [
3030
'pubDate',
3131
'author',
3232
'content:encoded',
33-
'enclosure'
33+
'enclosure',
34+
'dc:creator',
35+
'dc:date'
3436
];
3537
var PODCAST_ITEM_FIELDS = [
3638
'author',

test/output/instant-article.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
"link": "https://localhost:8000",
77
"pubDate": "Wed, 04 May 2016 06:53:45 GMT",
88
"content:encoded": "<b>Lorem</b> ipsum",
9+
"dc:creator": "tobi",
10+
"dc:date": "2016-05-04T06:53:45Z",
911
"content": "Lorem ipsum",
1012
"contentSnippet": "Lorem ipsum",
1113
"guid": "https://localhost:8000"

0 commit comments

Comments
 (0)