mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-13 02:20:03 -04:00
Update scripts
This commit is contained in:
parent
8ccb73f5e0
commit
56621f8bdb
2 changed files with 15 additions and 16 deletions
|
@ -23,10 +23,12 @@ export class CountryTable implements Table {
|
|||
let data = new Collection()
|
||||
parser
|
||||
.parse(generatorsLog)
|
||||
.filter(
|
||||
(logItem: LogItem) =>
|
||||
logItem.filepath.includes('countries/') || logItem.filepath.includes('subdivisions/')
|
||||
)
|
||||
.filter((logItem: LogItem) => {
|
||||
const isCountry = logItem.filepath.includes('countries/')
|
||||
const isSubdivision = logItem.filepath.includes('subdivisions/')
|
||||
|
||||
if (isCountry || isSubdivision) return true
|
||||
})
|
||||
.forEach((logItem: LogItem) => {
|
||||
const file = new File(logItem.filepath)
|
||||
const code = file.name().toUpperCase()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue