Skip to content

Commit

Permalink
parse media content in xml
Browse files Browse the repository at this point in the history
  • Loading branch information
serhatkarakoca committed Nov 11, 2022
1 parent e2e2f4d commit 0d97a30
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,10 @@ class Parser {
}
item['rdf:about'] = xmlItem.$['rdf:about']
if (xmlItem.category) item.categories = xmlItem.category;

var mediaContent = xmlItem['media:content'][0].$;
if(mediaContent) item.mediaContent = mediaContent;

this.setISODate(item);
return item;
}
Expand Down

0 comments on commit 0d97a30

Please sign in to comment.