From 581120287cecbcc90917bd4f4894da13ed415b9a Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk <7253922+freearhey@users.noreply.github.com> Date: Sat, 25 Oct 2025 03:31:44 +0300 Subject: [PATCH] Update scripts/commands/epg/grab.ts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Ismaƫl Moret <30985701+BellezaEmporium@users.noreply.github.com> --- scripts/commands/epg/grab.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/commands/epg/grab.ts b/scripts/commands/epg/grab.ts index c9fd9569..65ad863e 100644 --- a/scripts/commands/epg/grab.ts +++ b/scripts/commands/epg/grab.ts @@ -109,7 +109,7 @@ async function main() { channelsFromXML = channelsFromXML.filter((channel: Channel) => { if (!options.lang) return true - return options.lang.includes(channel.lang) + return channel.lang ? options.lang.includes(channel.lang) : false }) }