From 46775d47557cd44cae72cac9f8dabf2ce8a0495c Mon Sep 17 00:00:00 2001 From: yoanhg421 Date: Sun, 12 May 2024 01:37:38 -0700 Subject: [PATCH] add ReadAllComics and fix ComicExtra domain (#7074) * add ReadAllComics fix ComicExtra domain * fix linting issues * add copy paste support --- src/web/img/connectors/readallcomics | Bin 0 -> 9833 bytes src/web/mjs/connectors/ComicExtra.mjs | 4 +- src/web/mjs/connectors/ReadAllComics.mjs | 55 +++++++++++++++++++++++ 3 files changed, 57 insertions(+), 2 deletions(-) create mode 100644 src/web/img/connectors/readallcomics create mode 100644 src/web/mjs/connectors/ReadAllComics.mjs diff --git a/src/web/img/connectors/readallcomics b/src/web/img/connectors/readallcomics new file mode 100644 index 0000000000000000000000000000000000000000..25ec085412ef58c53bcbbbfe4c8d1b912c5115de GIT binary patch literal 9833 zcmeHscT`hZ*Y`z41i^^(B2iGW0HI1JGoyll^b)BNF(5Tmi5QcyP^69mqJTt1q>FS^ zASNL&HjpMwAw^ITvyzytCnN3%}eE{g3>^mVhZyd?r3V+8lw1iqj1|jXj0Y4Z=nuaDmYXeO)~S zV2Q*<2L^>>;&-0HgoH*}X)Hb=YwQd?ZKZ)ScGPo>K8!gNdMqgxN~FI zDo*p?7LH)zf?`9X<3q7gJAYUVJcUh&x6%;K{I5rfjQ-o~{}cNU#b|R!;nSWDj1N2# z7>}{iFwiqF($O>4(KGYVGcz|dGuJoM(K9jE)BBh5;aJR%mGHn~Bdj$3@0HO&2*Dx# zLia=b+fCLx|7rht;2#hCT(7fkBvKn zjTTZnJ;3xgJI9Sb_@J=;l=u7;w+-*e9M1t7H-7qE;^sW`8$s|Ckl76U0{kK>A_HuY z5fPOU5p)A^A#W5D`PqIB6LumSL^q0U65lK#xkaeZvJKcEA}YFJqo|nJk7-0M2=4BC z;oY)(<@YNptEwBDnp;}i+8;fp(z@wAy?;J?J~%Wy@@8~we1gehzn_`?@bS|eXKDHC z%IY`h``Qm&Lbm%aSi=5a$o>ypLMMo9*tk)2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(EZ`{;=~G+CpjUYr;Z=Z?qQaEY>#qVJQ*R1dJTct7 zm}$K?x10Eo-qu~`YqTtI~FY8$O|Z<;g$zD1Z&aA!uDy!7IZ!#y)f<}1+sHRYk&9Xg^m3Z!wgx z<+lAOwSW^^;SOCC9(eFTST|O7?Cqz=?^2$WLW?~_n2PH0P`;kCSI&G>U9Q949*~#~ z@n!qkv0_D-Vyi-i>E7a*e1>5ym+nWN|(K^q?YY*A~v+3hUpy)Y}F___^SgkC9hFTRLBp&h00y%!#d->sSbPH;dOyl6sWN@9%tf)P8qU+B~q9Nt31B{j$Lkg%DtOfOk!$%oaY za8)DL=2^1~QXBP*9#-GR1h|zSbYD#;HLbr=_o%Gug}T1pw)?I4-h%?f> { + return { + id: this.getRootRelativeOrAbsoluteLink(element, this.url), + title: element.text.trim(), + }; + }); + } + + async _getChapters(manga) { + let request = new Request(this.url + manga.id, this.requestOptions); + let data = await this.fetchDOM(request, 'ul.list-story li a'); + return data.map((element) => { + return { + id: this.getRootRelativeOrAbsoluteLink(element, this.url), + title: element.text.trim(), + language: '', + }; + }); + } + + async _getPages(chapter) { + let request = new Request(this.url + chapter.id, this.requestOptions); + let data = await this.fetchDOM( + request, + 'body > center > center > div source' + ); + return data.map((element) => this.getAbsolutePath(element, request.url)); + } +}