mirror of
https://github.com/sussy-code/providers.git
synced 2026-01-11 20:10:17 +00:00
make autoembed only return english embeds
This commit is contained in:
parent
393abf66f3
commit
d69bd0fb9d
1 changed files with 5 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue