Skip to content

Commit

Permalink
Merge pull request #1434 from Kiradien/SetMinthrottle
Browse files Browse the repository at this point in the history
Set minthrottle for Booktoki152Parser, MtlarchiveParser, ReadwnParser and QidianParser
  • Loading branch information
Kiradien authored Aug 21, 2024
2 parents 7cc2202 + e9d6f1c commit 9dd99ee
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions plugin/js/parsers/Booktoki152Parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ parserFactory.registerUrlRule(
class Booktoki152Parser extends Parser{
constructor() {
super();
this.minimumThrottle = 1500;
}

async getChapterUrls(dom) {
Expand Down
1 change: 1 addition & 0 deletions plugin/js/parsers/MtlarchiveParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ parserFactory.register("mtlarchive.com", () => new MtlarchiveParser());
class MtlarchiveParser extends Parser{
constructor() {
super();
this.minimumThrottle = 3000;
}

async getChapterUrls(dom, chapterUrlsUI) {
Expand Down
1 change: 1 addition & 0 deletions plugin/js/parsers/QidianParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ parserFactory.register("webnovel.com", () => new QidianParser());
class QidianParser extends Parser{
constructor() {
super();
this.minimumThrottle = 50; //Minimal delay to reduce frequency of 445 errors.
}

async getChapterUrls(dom) {
Expand Down
2 changes: 2 additions & 0 deletions plugin/js/parsers/ReadwnParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
parserFactory.register("fannovel.com", () => new ReadwnParser());
parserFactory.register("fannovels.com", () => new ReadwnParser());
parserFactory.register("fansmtl.com", () => new ReadwnParser());
parserFactory.register("fanmtl.com", () => new ReadwnParser());
parserFactory.register("novelmt.com", () => new ReadwnParser());
parserFactory.register("novelmtl.com", () => new ReadwnParser());
parserFactory.register("readwn.com", () => new ReadwnParser());
Expand Down Expand Up @@ -31,6 +32,7 @@ parserFactory.registerRule(
class ReadwnParser extends Parser{
constructor() {
super();
this.minimumThrottle = 3000;
}

static isReadwn(dom) {
Expand Down

0 comments on commit 9dd99ee

Please sign in to comment.