mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-12 01:50:04 -04:00
Update countryTable.ts
This commit is contained in:
parent
5be288b9b0
commit
0339d8a8ce
1 changed files with 11 additions and 9 deletions
|
@ -36,15 +36,17 @@ export class CountryTable implements Table {
|
||||||
const subdivision = subdivisions.first(
|
const subdivision = subdivisions.first(
|
||||||
(subdivision: Subdivision) => subdivision.code === code
|
(subdivision: Subdivision) => subdivision.code === code
|
||||||
)
|
)
|
||||||
const country = countries.first(
|
if (subdivision) {
|
||||||
(country: Country) => country.code === subdivision.country
|
const country = countries.first(
|
||||||
)
|
(country: Country) => country.code === subdivision.country
|
||||||
data.add([
|
)
|
||||||
`${country.name}/${subdivision.name}`,
|
data.add([
|
||||||
` ${subdivision.name}`,
|
`${country.name}/${subdivision.name}`,
|
||||||
logItem.count,
|
` ${subdivision.name}`,
|
||||||
`<code>https://iptv-org.github.io/iptv/${logItem.filepath}</code>`
|
logItem.count,
|
||||||
])
|
`<code>https://iptv-org.github.io/iptv/${logItem.filepath}</code>`
|
||||||
|
])
|
||||||
|
}
|
||||||
} else if (countryCode === 'INT') {
|
} else if (countryCode === 'INT') {
|
||||||
data.add([
|
data.add([
|
||||||
'ZZ',
|
'ZZ',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue