Update countryTable.ts

pull/19986/head
freearhey 1 day ago
parent 5be288b9b0
commit 0339d8a8ce

@ -36,6 +36,7 @@ export class CountryTable implements Table {
const subdivision = subdivisions.first( const subdivision = subdivisions.first(
(subdivision: Subdivision) => subdivision.code === code (subdivision: Subdivision) => subdivision.code === code
) )
if (subdivision) {
const country = countries.first( const country = countries.first(
(country: Country) => country.code === subdivision.country (country: Country) => country.code === subdivision.country
) )
@ -45,6 +46,7 @@ export class CountryTable implements Table {
logItem.count, logItem.count,
`<code>https://iptv-org.github.io/iptv/${logItem.filepath}</code>` `<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…
Cancel
Save