Update tvtv.us.config.js
This commit is contained in:
@@ -55,6 +55,7 @@ module.exports = {
|
|||||||
site_id: station.id,
|
site_id: station.id,
|
||||||
name: stationData.name,
|
name: stationData.name,
|
||||||
xmltv_id: parseChannelId(stationData)
|
xmltv_id: parseChannelId(stationData)
|
||||||
|
logo: parseChannelIcon(item)
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
default:
|
default:
|
||||||
@@ -125,3 +126,9 @@ function parseIcon(item) {
|
|||||||
? `https://tvtv.us/gn/i/${item.program.preferredImage.uri}`
|
? `https://tvtv.us/gn/i/${item.program.preferredImage.uri}`
|
||||||
: null
|
: null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function parseChannelIcon(item) {
|
||||||
|
return item.station.preferredImage && item.station.preferredImage.uri
|
||||||
|
? `https://tvtv.us/gn/i/${item.station.preferredImage.uri}`
|
||||||
|
: null
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user