mirror of
https://github.com/sussy-code/providers.git
synced 2026-04-21 00:22:07 +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) {
|
for (const stream of fileData) {
|
||||||
const url = stream.file;
|
const url = stream.file;
|
||||||
if (!url) continue;
|
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 {
|
return {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue