Skip to content
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

[Bato.to] Connector not working #2413 #2455

Merged
merged 4 commits into from
Oct 19, 2020
Merged

[Bato.to] Connector not working #2413 #2455

merged 4 commits into from
Oct 19, 2020

Conversation

Robonau
Copy link
Contributor

@Robonau Robonau commented Oct 19, 2020

it took 2 days but i got it
resolves #2413

it took 2 days but i got it
resolves #2413
}

async _getPages(chapter) {
let request = new Request(new URL(chapter.id, this.url), this.requestOptions);
let data = await this.fetchRegex(request, this.queryPages);
return Object.values(JSON.parse(data[0]));
data = Object.values(JSON.parse(data[0]));
return data.map(element => this.getAbsolutePath(`https:${element}`, request.url));
Copy link
Contributor

@ronny1982 ronny1982 Oct 19, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use URL constructor to build valid UVStrings with request.url as base (otherwise it will fail if e.g. element already starts with https)
data.map(element => new URL(element, request.url).href)

@Robonau
Copy link
Contributor Author

Robonau commented Oct 19, 2020

i gotta change the regex same as ComicPunch

@ronny1982
Copy link
Contributor

Can be merged as soon as the reported Lint error has been resolved

@Robonau
Copy link
Contributor Author

Robonau commented Oct 19, 2020

damn you semicolon!!!

Copy link
Contributor

@ronny1982 ronny1982 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@ronny1982 ronny1982 merged commit 2eeac01 into manga-download:master Oct 19, 2020
@Robonau Robonau deleted the batoto branch October 19, 2020 17:26
ronny1982 pushed a commit that referenced this pull request Nov 1, 2020
* [Bato.to] Connector not working #2413

it took 2 days but i got it
resolves #2413

* fixes

* regex fix

* lint
ronny1982 added a commit that referenced this pull request Nov 1, 2020
* fix toonily and add madara websites (#2435) (#2440)

* Manga Şehri (#2426)

* [Site Request] Lovable Subs #2423 (#2445)

* [Site Request] TopManhwa (#2397) (#2446)

* [Site Request] Serein Scans (#2342) (#2448)

* [Site Request] Cutie Pie (#2341) (#2449)

* [Site Request] Anikiga (#2346) (#2447)

* Updated/Removed various templated Websites (#2439)

* [neoxscan] updated domain

* [asurascans] fixed chapter query and image extraction

* [sensescans] updated protocol

* [manhwatime] strip manga/chapter titles

* [komiktap] fixed chapter query and image extraction

* [wordpressmangastream] added todo/note

* [komikav] fixed image extraction

* [komikindoweb] fixed image extraction

* [rawkuma] fixed chapter query and image extraction

* [wordpressmangastream] prepared websites for template update

* [wordpressmangastream] made template compatible to 1.1.2 (keep backward compatibility for older layout)

* removed unavailable websites of worpressmangastream template

* [komiktap] revert change from merge

* [mangaku] fixed image extraction from canvas (#2443)

* Fixed Mundowuxia (#2450)

* [Site Request] added Diamond Fansub #2425 (#2452)

* [9ekor] fixed connector not working #2451 (#2454)

* [ComicPunch] fixed connector not working #2387 (#2456)

* [Bato.to] fixed connector not working #2413 (#2455)

* [Site Request] added JPMANGAS #2453 (#2460)

* Add website mangazuki.mobi (#2461)

* [CoreView] Implement _getMangaFromURI (#2462)

* [WebtoonXYZ] fixed mangas query (#2466)

* MH template and sites that use it (#2464)

* added caisemh

* changed Kuimh to use template

* added mkzhan

* added iqiyi

* Update Kuman55

* added XianMan123

* [mangaWT] update url (#2473)

* added Manatoki (#2474)

* [Site Request] added Comic Trail #2465 (#2472)

* [Site Request] added heros-web #2217 (#2479)

* [Comic Zenon] added (#2482)

* added lxhentai & updated MojoPortalComic (#2478)

* added lxhentai & updated MojoPortalComic

* [wecomics] fixed manga and page query (#2457)

* [wordpressmadara] changed manga id selector to accept IDs with suffix (#2458)

* [nhentai] fixed image extraction, migrated to new API (#2476)

* [wutopiacomics] add support for user account login (via settings) (#2477)

* [manganelolink] added website support (#2480)

* [ManHuaFen] add website support (#2491)

* added CizgiRomanArsivi (#2488)

* [TuhaoManhua] Website removal (#2492)

* fixed Batoto _getPages (#2494)

* added Rawmanga.top (#2487)

* [wuqimh] added (#2486)

* fixed team1x1 and added _getMangaFromURI (#2489)

* [MHKAN] Website removal (#2497)

* [HamTruyen] Change website link address (#2498)

* [manhuaes] changed template to mojoportalcomic (#2459)

* add jpm1234 & manhuagui TLC (#2495)

* Add some websites support for WordpressMadara template (#2510)

* added MangaAy (#2501)

* added webmangatr conector (#2496)

* updated mangasehri icon (#2513)

* add Gateanime manga (#2521)

* added 117漫画网 (bx117) (#2514)

* added MangaRaw (#2516)

* add Sa3i9a (#2524)

* added asgard1team (#2515)

* fixed Newtoki (#2528)

* add mangaspark (#2542)

* added mangalink (#2544)

* fix KolNovel (#2536)

* [flatmanga] updated template websites (#2499)

* [epikmanga] changed template to flatmanga

* [mangatr] changed template to flatmanga

* [truyentranhlh] changed template to flatmanga

* added various templated websites (#2505)

* [twilightscans] added website support

* [flamescans] added website support

* [mangaproz] added website support

* [sinmh] improve usability to overwrite dynamic scripts, some minor renamings

* [manhuagui] use api literal in script

* [manhuabei] fixed copy & paste

* [manhuafen] fixed copy & paste

* [6mh7] added website support

* [ImiTui] add website support

* [manhuaniu] exclude disabled chapter links

Co-authored-by: Nguyễn Tấn Vĩnh <63141930+vinh2201@users.noreply.github.com>

* [mangahost] updated domain (#2533)

* [mangafox] handle image loading errors to ensure promise is resolved (#2534)

* [wordpressmadara] add various websites (#2526)

* [akumanga] added website support

* [1stkissmanhua] added website support

* [legionasia] added website support

* [animangaes] added website support

* [bakaman] added website support

* [boyslove] added website support

* [freecomiconline] added website support

* [bestmanhua] added website support

* [wordpressmadara] add support for configurable path

* [cat-translator] added website support

* [catonhead] added website support

* [comicsvalley] added website support

* [einherjarscans] added website support

* [fdmscan] added website support

* [herozscans] added website support

* [hikariscan] added website support

* [hscans] added website support

* [immortalupdates] added wesbite support

* [jjutsuscans] added website support

* [klankomik] added website support

* [manga-scantrad] added website support

* [mangaarchive] added website support

* [mangaclash] added website support

* [crazyscans] added website support

* [mangahentai] added website support

* [mangalandarabic] added website support

* [manganine] added website support

* [mangareadco] added website support

* [mangarocky] added website support

* [mangaroma] added website support

* [mangaspark] added website support

* [mangastarz] added website support

* [mangayaku] added website support

* [neoxscan] updated domain

* [manhuaga] added website support

* [manhwaraw] added website support

* [freewebtooncoins] added website support

* [manhwatop] added website support

* [manytooncom] added website support

* [markscans] added website support

* [mysticalmerries] added website support

* [nazarickscans] added website support

* [ninjavi] added website support

* [ntsvoidscans] added website support

* [offscan] added website support

* [olaoemanga] added website support

* [origamiorpheans] added website support

* [projetoscanlator] added website support

* [decadencescans] added website support

* [thetopcomic] added website support

* [flatmanga] add support for chapter title query

* [truyentranhaudio] added website support

* [truyentranhaudioonline] added website support

* [twilightscans] added website support

* [webtoonily] added website support

* [woopread] added website support

* [detectiveconanar] added website support

* [mangateca] added website support

* [toongod] added website support

* [yuriverso] added website support

* [mangaspark] delete website that has already been added

* [twilightscans] removed website that was already added

* [flatmanga] revert changes that were already added

* [9anime] bypass streamtape protection (#2553)

* Fix various broken websites (#2552)

* [lelscanvf] updated domain

* [japanread] fixed manga and chapter list extraction

* [futabanet] fixed domain and paths

* [futabanet] adjusted class/file name

* [futabanet] deleted lowercase named file fragment

* [linewebtoon] handle image loading error when composing layers

* [linewebtoon] add throttling as temp soulution to prevent image loading failure

Co-authored-by: 09morbab <30987265+09morbab@users.noreply.github.com>
Co-authored-by: Naufal Hakim <31276236+manh21@users.noreply.github.com>
Co-authored-by: Nguyễn Tấn Vĩnh <63141930+vinh2201@users.noreply.github.com>
Co-authored-by: robo <30987265+Robonau@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bato.to] Connector not working
2 participants