From 5acd2d94c1b99bd911a5ac29f77df3dd52416aae Mon Sep 17 00:00:00 2001 From: freearhey <7253922+freearhey@users.noreply.github.com> Date: Sat, 14 Oct 2023 18:02:25 +0300 Subject: [PATCH] Update grab.ts --- scripts/commands/epg/grab.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) }