change enclosure line

This commit is contained in:
Abderahman88 2023-03-20 23:08:39 +01:00
parent 53e8f094b9
commit 0216d73bef
1 changed files with 2 additions and 1 deletions

View File

@ -198,7 +198,8 @@ export class RssXmlParserService {
let item: any = {}; let item: any = {};
Utils.copyFromXML(xmlItem, item, itemFields); Utils.copyFromXML(xmlItem, item, itemFields);
if (xmlItem.enclosure) { if (xmlItem.enclosure) {
item.enclosure = xmlItem.enclosure[0].$; //item.enclosure = xmlItem.enclosure[0].$;
item.enclosure = xmlItem.enclosure.$;
} }
if (xmlItem.description) { if (xmlItem.description) {
if (Array.isArray(xmlItem.description)) { if (Array.isArray(xmlItem.description)) {