mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -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,
|
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
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue