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
@@ -49,7 +49,7 @@ module.exports = {
programs.push({
title: parseTitle($item),
description: parseDescription($item),
icon: parseIcon($item),
image: parseImage($item),
start,
stop
})
@@ -130,7 +130,7 @@ module.exports = {
}
}
function parseIcon($item) {
function parseImage($item) {
const src = $item('.event-logo img:not(.no-img)').attr('src')
return src ? `https://sat.tv${src}` : null