From cb52742a1b5146cd1d22f16b1189d366ae7c8399 Mon Sep 17 00:00:00 2001 From: freearhey <7253922+freearhey@users.noreply.github.com> Date: Sat, 14 Oct 2023 18:18:56 +0300 Subject: [PATCH] Update configLoader.ts --- scripts/core/configLoader.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/core/configLoader.ts b/scripts/core/configLoader.ts index 0fd429ad..2cff65d8 100644 --- a/scripts/core/configLoader.ts +++ b/scripts/core/configLoader.ts @@ -1,9 +1,11 @@ import { SiteConfig } from 'epg-grabber' import _ from 'lodash' +import { pathToFileURL } from 'url' export class ConfigLoader { async load(filepath: string): Promise { - const config = (await import(filepath)).default + const fileUrl = pathToFileURL(filepath).toString() + const config = (await import(fileUrl)).default return _.merge( {