mirror of
https://github.com/iptv-org/epg
synced 2025-12-16 18:37:01 -05:00
wip
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user