New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use mobile site for kuaikanmanhua for larger images. #3155
Conversation
@@ -1,7 +1,7 @@ | |||
import Connector from '../engine/Connector.mjs'; | |||
import Manga from '../engine/Manga.mjs'; | |||
|
|||
export default class Kauikanmanhua extends Connector { | |||
export default class Kuaikanmanhua extends Connector { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename file to reflect classname
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
file is already named correctly - i just fixed the classname to reflect that!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, minor improvments possible
* use mobile site for kuaikanmanhua for larger images. * removed redundant comments. Co-authored-by: adelie <adelie@users.noreply.github.com>
* Update manmanapp.mjs (#3095) * fix _getMangas sukima (#3096) * [fujoshibitches] removed website support (#3082) * [gekkouscans] changed template, updated domain, referer for images (#3082) * [lhscan] removed website support (#3082) * [mundowuxia] camel case file naming (#3082) * hack to fix imgur accept header globally (#3082) * do not save the updated manga list if there are no entries (#3082) * [goldenmangas] updated domain (#3082) * [mangalib] fixed chapter list extraction (#3082) * [hikariscan] changed template (#3082) * [mangasforyou] removed website support (#3082) * [mangajar] fixed CSS queries, simplified manga ID (#3082) * [rawsenmanga] fixed CSS queries (#3082) * improve image URL detection for enforced accept header (#3082) * [mangasusureborn] update domain (#3082) * [shieldmanga] added website support (#3083) * [imperiodosotakus] added website support (#3083) * [geassscan] added website support (#3083) * [animecenterscan] added website support (#3083) * [WordPressMangastream] bypass wp.com proxy for images to download originals (#3083) * [manhwaland] added website support (#3083) * [mangamitsu] added website support (#3083) * [kumascans] added website support (#3083) * [mangasepeti] added website support (#3083) * [flamescans-org] added website support (#3083) * [dragontranslation] added website support (#3083) * [jiangzaitoon] added website support (#3083) * [manga18-us] added website support (#3083) * [manga18-club] added website support (#3083) * [Coreview] decrease resource usage (#3123) * [comicfx] added website support (#3104) * [irisscanlator] added website support (#3104) * [sindriascanlator] added website support (#3104) * [modescanlator] added website support (#3104) * [tonarinoyoungjump] decrease resource usage (#3104) * [animaregia] added website support (#3104) * [olhodalua] added website support (#3104) * [mangaweebs] added website support (#3104) * [manhwaid] added website support (#3104) * [mangareceh] updated domain and name (#3104) * [mangagreat] added website support (#3104) * [tonarinoyoungjump] revert duplicate optimization (#3104) * use mobile site for kuaikanmanhua for larger images. (#3155) Co-authored-by: adelie <adelie@users.noreply.github.com> * [sektekomik] updated protocol (#3143) * [komikmama] updated path (#3143) * [mangakid] updated domain (#3143) * [mangakita] updated path (#3143) * [westmanga] updated path (#3143) * [gurukomik] updated path (#3143) * [masterkomik] updated path (#3143) * [turktoon] update path, remove chapter title bloat (#3143) * [komiksave] added website support (#3143) * [drkmangas] added website support (#3143) * [gloryscans] added website support (#3143) * [mangadex] (#3143) + add retry (3x) for failed API requests - remove user defined servers + introduce multi-image server support (fallback) * [anikiga] updated protocol (#3143) * [wnacg] added website support (#3143) * [naniscans] added website support (#3143) * [manga18fx] added website support (#3143) * [mangasorigines] added website support (#3143) * [wordpressmangastream] increase image detection delay (for ts_reader not initialized yet) (#3143) * [ngomik] fixed captcha protected image CDN server and manga list extraction (#3143) * [manhuaes] changed template to WordPressMadara (#3143) * [mangadex] allow support for multiple md@h seeds (#3143) * [isekairaw] removed dead website (#3143) * [otakusekaiscan] added website support (#3143) * [hunterscan] added website support (#3143) * [manhwasmen] fixed CSS queries (#3143) * [hakaiscan] added website support (#3143) * [mangagenki] added website support (#3143) * [wordpressmadara] bypass proxy and ensure image.src has lowest priority (even when `data:image` url) (#3143) * [manhuaus] fixed image query (#3143) * [wordpressmangastream] prefer first server for images (#3143) * [imhentai] updated domain (#3143) * [mangadex] updated upstream server (#3143) * [mangadex] fix new api server (#3177) * [mangalivre] changed domain (#3177) * [ikifang] added website support (#3177) * [senpaiediciones] added website support (#3177) * [samuraiscan] changed template (#3177) * [toonily] fixed manga list extraction (#3177) * [pmscans] updated protocol (#3177) * [mangaboruto] updated domain and fixed chapter extraction (#3177) * [secretscans] changed domain and name (#3177) * [manhuaus] fixed image extraction (#3177) * [moonloversscan] added website support (#3177) * [littlemonsterscan] added website support (#3177) * [mangadex] improve api URL usage (#3177) * [neoxscan] updated domain (#3177) * [mangalife] fixed image link extraction (#3177) * [unionmangas] changed domain, fixed image link extraction (#3177) * [mangalife] bypass dynamic variable protection (#3177) * Update NewToki.mjs (#3193) * leviatanscans to madara (#3195) resolves #3186 Co-authored-by: Ever4Engel <47645041+Ever4engel@users.noreply.github.com> Co-authored-by: robo <30987265+Robonau@users.noreply.github.com> Co-authored-by: cyn, a small penguin <5573802+adelie@users.noreply.github.com> Co-authored-by: adelie <adelie@users.noreply.github.com> Co-authored-by: Quazzzi <80200413+Quazzzi@users.noreply.github.com>
tl;dr. mobile site gives bigger images. bigger images makes me happy.
context. a friend of mine recently tipped me off that kuaikanmanhua serves two different image sizes - 750px wide for the desktop site and 1280px wide for the mobile site. from a scanlation perspective, i prefer high-quality images whenever they're available.
i've tested these changes locally and i believe these are the only changes that need to be made. faking a mobile user-agent will redirect to the mobile site, and then the data structure is slightly different (
comicImages
vs.comic_images
).