mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-09 16:40:07 -04:00
Update grab.ts
This commit is contained in:
parent
870e8a11f3
commit
5acd2d94c1
1 changed files with 3 additions and 1 deletions
|
@ -61,7 +61,9 @@ async function main() {
|
|||
|
||||
let files: string[] = []
|
||||
if (options.site) {
|
||||
files = await storage.list(path.join(SITES_DIR, `${options.site}/*.channels.xml`))
|
||||
let pattern = path.join(SITES_DIR, options.site, '*.channels.xml')
|
||||
pattern = pattern.replace(/\\/g, '/')
|
||||
files = await storage.list(pattern)
|
||||
} else if (options.channels) {
|
||||
files = await storage.list(options.channels)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue