AniWorld + SerienStream filter out pseudo authors

in form of " & n weitere".
This commit is contained in:
NBA2K1
2025-05-07 02:07:47 +02:00
parent 3ecb077330
commit 89d01bf7c7
2 changed files with 10 additions and 2 deletions

View File

@@ -122,7 +122,11 @@ class DefaultExtension extends MProvider {
.filter(e => e.outerHtml.includes("Produzent:")); .filter(e => e.outerHtml.includes("Produzent:"));
let author = ""; let author = "";
if (produzent.length > 0) { if (produzent.length > 0) {
author = produzent[0].select("li").map(e => e.text).join(", "); author = produzent[0]
.select("li")
.map((e) => e.text)
.filter((text) => !/^\s\&\s\d+\sweitere$/.test(text))
.join(", ");
} }
const seasonsElements = document.select("#stream > ul:nth-child(1) > li > a"); const seasonsElements = document.select("#stream > ul:nth-child(1) > li > a");
// Use asyncPool to limit concurrency while processing seasons // Use asyncPool to limit concurrency while processing seasons

View File

@@ -122,7 +122,11 @@ class DefaultExtension extends MProvider {
.filter(e => e.outerHtml.includes("Produzent:")); .filter(e => e.outerHtml.includes("Produzent:"));
let author = ""; let author = "";
if (produzent.length > 0) { if (produzent.length > 0) {
author = produzent[0].select("li").map(e => e.text).join(", "); author = produzent[0]
.select("li")
.map((e) => e.text)
.filter((text) => !/^\s\&\s\d+\sweitere$/.test(text))
.join(", ");
} }
const seasonsElements = document.select("#stream > ul:nth-child(1) > li > a"); const seasonsElements = document.select("#stream > ul:nth-child(1) > li > a");
// Use asyncPool to limit concurrency while processing seasons // Use asyncPool to limit concurrency while processing seasons