From e282a40d116d095748e9e02ebfea90f0c9ac932a Mon Sep 17 00:00:00 2001 From: gamebeaker Date: Mon, 30 Sep 2024 17:05:45 +0200 Subject: [PATCH] update genesistudio again... --- plugin/js/parsers/GenesiStudioParser.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/js/parsers/GenesiStudioParser.js b/plugin/js/parsers/GenesiStudioParser.js index 3b4b1c03..6238cbf5 100644 --- a/plugin/js/parsers/GenesiStudioParser.js +++ b/plugin/js/parsers/GenesiStudioParser.js @@ -8,7 +8,7 @@ parserFactory.register("genesistudio.com", () => new GenesiStudioParser()); class GenesiStudioParser extends Parser{ constructor() { super(); - this.minimumThrottle = 1000; + this.minimumThrottle = 3000; } clampSimultanousFetchSize() { @@ -19,7 +19,7 @@ class GenesiStudioParser extends Parser{ let data = (await HttpClient.fetchJson(dom.baseURI + "/__data.json")).json; let tmpids = data.nodes[2].data[0].chapters; let jsdata = data.nodes[2].data[tmpids]; - let extractfreechapter = [...jsdata.match(/'free'.*'premium'/)[0].matchAll(/'id':0.*?,/g)]; + let extractfreechapter = [...jsdata.match(/return{.*}}],/)[0].matchAll(/'id':0.*?,/g)]; let freechapterids = extractfreechapter.map(e => Number(e[0].replace("'id':","").replace(",",""))); let returnchapters = freechapterids.map(e => ({