mirror of
https://github.com/iptv-org/epg
synced 2025-12-16 18:37:01 -05:00
Update grab.ts
This commit is contained in:
@@ -61,7 +61,9 @@ async function main() {
|
|||||||
|
|
||||||
let files: string[] = []
|
let files: string[] = []
|
||||||
if (options.site) {
|
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) {
|
} else if (options.channels) {
|
||||||
files = await storage.list(options.channels)
|
files = await storage.list(options.channels)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user