mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 09:00:07 -04:00
Update tvtv.us.config.js
This commit is contained in:
parent
572d7fe509
commit
07d773255c
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue