diff --git a/sites/tvtv.us/tvtv.us.config.js b/sites/tvtv.us/tvtv.us.config.js index 6767ccd2..74988ff6 100644 --- a/sites/tvtv.us/tvtv.us.config.js +++ b/sites/tvtv.us/tvtv.us.config.js @@ -55,6 +55,7 @@ module.exports = { site_id: station.id, name: stationData.name, xmltv_id: parseChannelId(stationData) + logo: parseChannelIcon(item) } break default: @@ -125,3 +126,9 @@ function parseIcon(item) { ? `https://tvtv.us/gn/i/${item.program.preferredImage.uri}` : null } + +function parseChannelIcon(item) { + return item.station.preferredImage && item.station.preferredImage.uri + ? `https://tvtv.us/gn/i/${item.station.preferredImage.uri}` + : null +}