mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
wip
This commit is contained in:
parent
3d0d891ef5
commit
0a33284308
1 changed files with 1 additions and 3 deletions
|
@ -71,13 +71,11 @@ async function loadChannels() {
|
||||||
let output = {}
|
let output = {}
|
||||||
items.forEach(item => {
|
items.forEach(item => {
|
||||||
if (!output[item.xmltv_id]) {
|
if (!output[item.xmltv_id]) {
|
||||||
const countryCode = item.xmltv_id.split('.')[1]
|
|
||||||
|
|
||||||
output[item.xmltv_id] = {
|
output[item.xmltv_id] = {
|
||||||
id: item.xmltv_id,
|
id: item.xmltv_id,
|
||||||
name: [item.name],
|
name: [item.name],
|
||||||
logo: item.logo || null,
|
logo: item.logo || null,
|
||||||
country: countryCode ? countryCode.toUpperCase() : null
|
country: item.country
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
output[item.xmltv_id].logo = output[item.xmltv_id].logo || item.logo
|
output[item.xmltv_id].logo = output[item.xmltv_id].logo || item.logo
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue