Skip to content

Commit

Permalink
update genesistudio again...
Browse files Browse the repository at this point in the history
  • Loading branch information
gamebeaker committed Sep 30, 2024
1 parent d0470c7 commit e282a40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/js/parsers/GenesiStudioParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ parserFactory.register("genesistudio.com", () => new GenesiStudioParser());
class GenesiStudioParser extends Parser{
constructor() {
super();
this.minimumThrottle = 1000;
this.minimumThrottle = 3000;
}

clampSimultanousFetchSize() {
Expand All @@ -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 => ({
Expand Down

0 comments on commit e282a40

Please sign in to comment.