Replaces icon with image

This commit is contained in:
freearhey
2024-06-24 16:49:35 +03:00
parent 0eaff54a31
commit bb6771f539
170 changed files with 428 additions and 351 deletions
+2 -2
View File
@@ -22,7 +22,7 @@ module.exports = {
title: item.title,
category: item.category,
description: parseDescription(item),
icon: parseIcon(item),
image: parseImage(item),
start: parseStart(item),
stop: parseStop(item)
})
@@ -60,7 +60,7 @@ function parseDescription(item) {
return typeof item.desc === 'string' ? item.desc : null
}
function parseIcon(item) {
function parseImage(item) {
return item.icon['@attributes'].src
}