From d69bd0fb9dd4baaf17d70f28911a6794a2e6858e Mon Sep 17 00:00:00 2001 From: Ivan Evans <74743263+Pasithea0@users.noreply.github.com> Date: Thu, 2 Jan 2025 17:30:02 -0700 Subject: [PATCH] make autoembed only return english embeds --- src/providers/sources/autoembed.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/providers/sources/autoembed.ts b/src/providers/sources/autoembed.ts index 40861d8..0859fc0 100644 --- a/src/providers/sources/autoembed.ts +++ b/src/providers/sources/autoembed.ts @@ -27,7 +27,11 @@ async function comboScraper(ctx: ShowScrapeContext | MovieScrapeContext): Promis for (const stream of fileData) { const url = stream.file; if (!url) continue; - embeds.push({ embedId: `autoembed-${stream.title.toLowerCase().trim()}`, url }); + const lang = stream.title.toLowerCase().trim(); + // only return english + if (lang.includes('english') && url) { + embeds.push({ embedId: `autoembed-${lang}`, url }); + } } return {