make autoembed only return english embeds

This commit is contained in:
Ivan Evans 2025-01-02 17:30:02 -07:00
parent 393abf66f3
commit d69bd0fb9d

View file

@ -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 {