diff --git a/scripts/commands/epg/grab.ts b/scripts/commands/epg/grab.ts index 97875867..38102d99 100644 --- a/scripts/commands/epg/grab.ts +++ b/scripts/commands/epg/grab.ts @@ -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) }