Skip to content

Commit 154e430

Browse files
committed
map itunes keywords
1 parent 12919c1 commit 154e430

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,13 @@ const GET = exports.GET = {
163163
return node['itunes:duration']
164164
},
165165

166+
keywords: function (node) {
167+
if(node["itunes:keywords"] && node["itunes:keywords"].length > 0){
168+
return node["itunes:keywords"].map(keywords=>keywords.split(",").map(keyword=>keyword.trim()))
169+
}
170+
return [];
171+
},
172+
166173
categories: function (node) {
167174
// returns categories as an array containing each category/sub-category
168175
// grouping in lists. If there is a sub-category, it is the second element

0 commit comments

Comments
 (0)