Skip to content

Commit

Permalink
update from master (#6990)
Browse files Browse the repository at this point in the history
* Fid CovenScan domain (#6670)

Fixes #6463

* Fix ZeroScans: change url and fix paste support (#6671)

* Change url and fix paste support

* Use regex to extract slug

* FIx WestManga: change domain (#6669)

Fixes #6666

* Fix PojokManga : change domain (#6652)

Fixes #6650

* FIx XoxoComics: domain & manga listing (#6647)

Fixes #6646

* FIx MangaHub: change API & CDN domains (#6683)

Fixes #6682

Websites based on MH has been tested too :)

* FIX MangaEffect : no more wpmangaprotector (#6699)

Fixes #6698

* add mangasusuku (#6704)

* Lezhin : change manga list endpoint & language values (#6689)

* Lezhin : change manga list endpoint

* Lezhin : change locale code

* Fix InfernalVoidScans: use referer (#6705)

Fixes #6701

* RandomScan : rebranding to LuraToon (#6726)

* RandomScan : rebranding to LuraToon

* update randomscan icon

* Fix Ainzscans: domain and junk in manga title (#6714)

Fixes #6712

* feat(AGS): create connector (#6753)

* feat(Nyrax): create connector (#6754)

* Remove Assorted Scans (#6768)

* FIx AsuraScansTR : domain, Madara, no junk (#6713)

Fixes #6707

* FIx LikeManga: invalid css selector (#6745)

Turns out selector is invalid in our old chrome
Filtering picture another way

* Fix GekkouScans: change domain (#6740)

Fixes #6739

* Update MangasChan.mjs (#6752)

updating the link data

* Fix MangaGeko: change domain (#6757)

Fixes #6756

* Fix Nonbiri: rebranding & change domain (#6737)

Fixes #6736

* MangaHub.io: change CDN (#6771)

* FIx MangaTR: change manga list path (#6733)

Fixes #6731

* [mangadex] get list from CDN (#6774)

* get mangalist from cdn

* fix lint error

---------

Co-authored-by: MikeZeDev <MikeZeDev@users.noreply.github.com>

* Websites maintenance : AlliedFansub & Nivera (#6802)

* AlliedFansub: change domain and template Fixes #6793
* Nivera : change domain Fixes #6792

* Fix ComicK : change domain (#6779)

* FIx WebtoonHatti: change selector again (#6775)

* FIX TCBScans: workaround for 404 errors (#6376)

* FIX TCBScans: workarourd for 404 errors

1) Website changed url (unrelated)
2) They deliberately introduce missing junk pictures in popular manga chapters. 

Since they cant be distinguished by name pattern, we use another method ;)

* requested changes

* changed logic for fake pages

missing pages are always at the end, so we start testing pictures backwards and stop when its good.

* tbcscans: fire all promises and wait

* Fix Opiatoon: changte domain (#6809)

Fixes #6791

* ComicWalker: rebrand to KadoComi (#6808)

Fixes #6806

* Fix ManhuaPlus: domain and change template (#6825)

No more madara.

Fixes #6824

* FiX KomikAV: change domain & rebrnad to APKomik (#6839)

Closes #6837

* use more recent user-agent header (#6835)

* Fix TuMangaOnline: fix getting pages (#6684)

* FIx welovemanga.one: getting pages (#6715)

Fixes #6711

* Fix HentaiRead: get chapters and pages (#6777)

* Fix HentaiRead: get chapters and pages

* fix regex

* Fix lint

* try catch in promise

* Fix ManhwaFreak: change fomain and filters (#6851)

Fixes #6849

* Fix LyraScans: change domain & rebrand (#6857)

* Fix LyraScans: change domain & rebrand

Fixes #6856

* update icon

* Fix NeoxScan: change domain (#6860)

* FIx ResetScans : change domain (#6854)

Fixes #6853

* Fix SwatManga : change domain (#6844)

Fixes #6842

* Fix KomikNesia : change domain (#6873)

Fixes #6871

* Fix MangaToon: change CSS for chapters (#6887)

get rid of duplicate chapters

* Fix ComicK: update domain (#6897)

Fixes #6896

* Fix MangaSail : change domain (#6898)

Fixes #6894

* Fix MangaBat : change domain (#6899)

* Fix MangaStarz : change domain (#6901)

Fixes #6900

* change domain (#6910)

Co-authored-by: Abdullah-KS <78895454+Abdullah-KS@users.noreply.github.com>

* FIx Siyahmelek: change domain (#6915)

Fixes #6908

* Fix MangaTX : domain changed (#6916)

Fixes #6911

* Fix TopToon : update CSS selectors (#6906)

* Fix TopToon : update CSS selectors

Fixes #6905

* Update TopToon.mjs

* Update TopToon.mjs

* attempt to fix lint error

* dont use optional chaining

optional chaining doesnt work in stable build because electron version is too old

* Fix MagKan: use Comici Viewer (#6927)

Similar to YoungChampion, YoungAnimal, Comicride, ComicMedu, etc....

Fixes #6926

* Fix winterscan : change domain (#6935)

#6933

* fix MangaSect source (#6930)

* fix MangaSect source

* fix lint

* better mangasect fix

---------

Co-authored-by: Victor Abrate <me@vab.one>
Co-authored-by: MikeZeDev <MikeZeDev@users.noreply.github.com>

* Fix MoonWitchInLove : change domain (#6942)

Fixes #6936

* add connector monzeekomik (#6954)

* add connector monzeekomik

* fix lint

---------

Co-authored-by: MikeZeDev <MikeZeDev@users.noreply.github.com>

* Fix ComicExtra : change domain (#6951)

* FIx KomikAV: domain type (#6881)

Fixes #6879

* Fix Saikaiscan : change domain (#6963)

Fixes #6620

* Fix LxHentai: change domain (#6970)

Fixes #6968

* Lock ESLint Version (#6971)

* lock eslint version

* fix lint errors

---------

Co-authored-by: trendbloat <156368216+trendbloat@users.noreply.github.com>
Co-authored-by: akn19 <86169232+akn19@users.noreply.github.com>
Co-authored-by: Tristan <tristan@tnet.moe>
Co-authored-by: ObserverOfTime <chronobserver@disroot.org>
Co-authored-by: Luis Araújo <97482945+DartinSA@users.noreply.github.com>
Co-authored-by: Ronny <wegener.ronny@gmail.com>
Co-authored-by: ZIRO <78895454+PD-ZIRO@users.noreply.github.com>
Co-authored-by: Abdullah-KS <78895454+Abdullah-KS@users.noreply.github.com>
Co-authored-by: Victor Abrate <victor.abrate@gmail.com>
Co-authored-by: Victor Abrate <me@vab.one>
  • Loading branch information
11 people authored Apr 17, 2024
1 parent 709bd44 commit 0191a4f
Show file tree
Hide file tree
Showing 69 changed files with 423 additions and 555 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"asar": "latest",
"discord-rpc": "latest",
"electron": "8.3.4",
"eslint": "latest",
"eslint": "^8.57.0",
"fs-extra": "latest",
"innosetup-compiler": "latest",
"jest": "latest",
Expand All @@ -35,7 +35,7 @@
"start:build": "npm run build:web && electron . --update-url=DISABLED --cache-directory=./build/latest",
"lint": "npm run lint:app && npm run lint:web",
"lint:app": "eslint ./src/app --ignore-path .gitignore",
"lint:web": "eslint ./src/web/mjs/**/*.mjs --ignore-path .gitignore --ignore-pattern Connectors.mjs",
"lint:web": "eslint ./src/web/mjs/**/*.mjs --ignore-path .gitignore --parser-options ecmaVersion:2020",
"format": "npm run format:app && npm run format:web",
"format:app": "npm run lint:app -- --fix",
"format:web": "npm run lint:web -- --fix",
Expand Down
Binary file removed src/web/img/connectors/assortedscans
Binary file not shown.
Binary file modified src/web/img/connectors/lyrascans
Binary file not shown.
Binary file added src/web/img/connectors/mangasusuku
Binary file not shown.
Binary file added src/web/img/connectors/monzeekomik
Binary file not shown.
Binary file added src/web/img/connectors/nyrax
Binary file not shown.
Binary file modified src/web/img/connectors/randomscan
Binary file not shown.
32 changes: 32 additions & 0 deletions src/web/mjs/connectors/AGS.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import WordPressMangastream from './templates/WordPressMangastream.mjs';

export default class AGS extends WordPressMangastream {

constructor() {
super();
super.id = 'ags';
super.label = 'AGS (Animated Glitched Scans)';
this.tags = [ 'manga', 'english', 'scanlation' ];
this.url = 'https://agscomics.com';
this.path = '/series/?list';
}

get icon() {
return '/img/connectors/anigliscans';
}

async _getPages(chapter) {
const data = await super._getPages(chapter);
return data.map(element => this.createConnectorURI(element));
}

async _handleConnectorURI(payload) {
const request = new Request(payload, this.requestOptions);
request.headers.set('x-referer', this.url);
let response = await fetch(request);
let data = await response.blob();
data = await this._blobToBuffer(data);
this._applyRealMime(data);
return data;
}
}
11 changes: 10 additions & 1 deletion src/web/mjs/connectors/Ainzscans.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,16 @@ export default class Ainzscans extends WordPressMangastream {
super.id = 'ainzscans';
super.label = 'Ainz Scans';
this.tags = [ 'webtoon', 'indonesian', 'scanlation' ];
this.url = 'https://ainzscans.site';
this.url = 'https://ainzscans.net';
this.path = '/series/list-mode';
}

async _getMangas() {
return (await super._getMangas()).map(manga => {
return {
id : manga.id,
title : manga.title.replace('Bahasa Indonesia', '').trim()
};
});
}
}
7 changes: 3 additions & 4 deletions src/web/mjs/connectors/AlliedFansub.mjs
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import WordPressMangastream from './templates/WordPressMangastream.mjs';
import WordPressMadara from './templates/WordPressMadara.mjs';

export default class AlliedFansub extends WordPressMangastream {
export default class AlliedFansub extends WordPressMadara {

constructor() {
super();
super.id = 'alliedfansub';
super.label = 'Allied Fansub';
this.tags = [ 'webtoon', 'turkish', 'scanlation' ];
this.url = 'https://alliedfansub.online';
this.path = '/manga/list-mode/';
this.url = 'https://alliedfansub.net';
this.requestOptions.headers.set('x-referer', this.url);
}
}
78 changes: 0 additions & 78 deletions src/web/mjs/connectors/AssortedScans.mjs

This file was deleted.

21 changes: 3 additions & 18 deletions src/web/mjs/connectors/AsuraScansTR.mjs
Original file line number Diff line number Diff line change
@@ -1,31 +1,16 @@
import WordPressMangastream from './templates/WordPressMangastream.mjs';
import WordPressMadara from './templates/WordPressMadara.mjs';

export default class AsuraScansTR extends WordPressMangastream {
export default class AsuraScansTR extends WordPressMadara {

constructor() {
super();
super.id = 'asurascans-tr';
super.label = 'Asura Scans (TR)';
this.tags = ['webtoon', 'turkish'];
this.url = 'https://armoniscans.com';
this.path = '/manga/list-mode/';
this.queryPages = 'div#readerarea p img';
this.requestOptions.headers.set('x-user-agent', 'Mozilla/5.0 (Linux; Android 9; Pixel) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4026.0 Mobile Safari/537.36');
this.url = 'https://asurascans.com.tr';
}

get icon() {
return '/img/connectors/asurascans';
}

async _getPages(chapter) {
const excludes = [
/panda_gif_large/i,
/2021\/04\/page100-10\.jpg/i,
/2021\/03\/20-ending-page-\.jpg/i,
/ENDING-PAGE/i
];
const images = await super._getPages(chapter);
return images.filter(link => !excludes.some(rgx => rgx.test(link)));
}

}
2 changes: 1 addition & 1 deletion src/web/mjs/connectors/ComicExtra.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default class ComicExtra extends Connector {
super.id = 'comicextra';
super.label = 'ComicExtra';
this.tags = ['comic', 'english'];
this.url = 'https://comicextra.me';
this.url = 'https://comicextra.org';
this.path = '/comic-list/';
}

Expand Down
6 changes: 3 additions & 3 deletions src/web/mjs/connectors/ComicK.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ export default class ComicK extends Connector {
super.id = 'comick';
super.label = 'ComicK';
this.tags = [ 'manga', 'english' ];
this.url = 'https://comick.ink';
this.apiurl = 'https://api.comick.ink';
this.url = 'https://comick.io';
this.apiurl = 'https://api.comick.io';
this.requestOptions.headers.set('x-origin', this.url );
this.requestOptions.headers.set('x-referer', this.apiurl );

}

canHandleURI(uri) {
return /https?:\/\/comick\.(app|ink|cc)/.test(uri.origin);
return /https?:\/\/comick\.(app|ink|cc|io)/.test(uri.origin);
}

async _getEmbeddedJSON(uri) {
Expand Down
Loading

0 comments on commit 0191a4f

Please sign in to comment.