Skip to content

Commit

Permalink
update from master (#6979)
Browse files Browse the repository at this point in the history
* 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: akn19 <86169232+akn19@users.noreply.github.com>
Co-authored-by: Ronny <wegener.ronny@gmail.com>
  • Loading branch information
3 people authored Apr 17, 2024
1 parent 94f4154 commit d46c321
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 12 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 added src/web/img/connectors/monzeekomik
Binary file not shown.
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
2 changes: 1 addition & 1 deletion src/web/mjs/connectors/KomikAV.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default class KomikAV extends WordPressMangastream {
super.id = 'komikav';
super.label = 'APKomik';
this.tags = [ 'manga', 'indonesian' ];
this.url = 'https://apkomic.cc';
this.url = 'https://apkomik.cc';
this.path = '/manga/list-mode/';
}
}
2 changes: 1 addition & 1 deletion src/web/mjs/connectors/LxHentai.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default class LxHentai extends MojoPortalComic {
super.id = 'lxhentai';
super.label = 'LXHENTAI';
this.tags = [ 'manga', 'hentai', 'vietnamese' ];
this.url = 'https://lxmanga.net';
this.url = 'https://lxmanga.cc';

this.queryMangaTitle = 'head title';
this.queryChapter = 'div.justify-between ul.overflow-y-auto a';
Expand Down
19 changes: 19 additions & 0 deletions src/web/mjs/connectors/MonzeeKomik.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import WordPressMangastream from './templates/WordPressMangastream.mjs';

export default class MonzeeKomik extends WordPressMangastream {

constructor() {
super();
super.id = 'monzeekomik';
super.label = 'MonzeeKomik';
this.tags = ['manga', 'manhwa', 'indonesian'];
this.url = 'https://monzeekomik.my.id';
this.path = '/manga/list-mode/';
}

async _getMangas() {
const mangas = await super._getMangas();
mangas.forEach(manga => manga.title = manga.title.replace(/Bahasa Indonesia$/i, '').trim());
return mangas;
}
}
8 changes: 4 additions & 4 deletions src/web/mjs/connectors/Saikaiscan.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ export default class SaikaiScan extends Connector {
super.id = 'saikaiscan';
super.label = 'Saikaiscan';
this.tags = [ 'manga', 'portuguese', 'webtoon', 'novel' ];
this.url = 'https://saikaiscan.com.br';
this.api = 'https://api.saikai.com.br/api/stories';
this.imagesurl = 'https://s3-alpha.saikai.com.br';
this.url = 'https://saikaiscans.net';
this.api = 'https://api.saikaiscans.net/api/stories';
this.imagesurl = 'https://s3-alpha.saikaiscans.net';
this.novelContentQuery = 'div#leitor-serie-body';
this.novelFormat = 'image/png';
this.novelWidth = '56em';
this.novelPadding = '1.5em';
this.links = {
login: 'https://saikaiscan.com.br/login'
login: 'https://saikaiscan.net/login'
};
}

Expand Down
6 changes: 3 additions & 3 deletions src/web/mjs/engine/Connectors.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default class Connectors {
try {
let response = await fetch(uri);
let data = await response.json();
return data.filter(plugin => !plugin.startsWith('.') && plugin.endsWith('.mjs')).map(plugin => uri + plugin)
return data.filter(plugin => !plugin.startsWith('.') && plugin.endsWith('.mjs')).map(plugin => uri + plugin);
} catch(error) {
//console.warn(error);
return [];
Expand Down Expand Up @@ -50,13 +50,13 @@ export default class Connectors {
}
}
this._list.sort( ( a, b ) => {
return ( a.label.toLowerCase() < b.label.toLowerCase() ? -1 : 1 );
return a.label.toLowerCase() < b.label.toLowerCase() ? -1 : 1;
} );
} catch(error) {
console.warn(`Failed to load connector`, error);
}
}

async _onConnectorProtocolHandler(request) {
try {
let uri = new URL(request.url);
Expand Down

0 comments on commit d46c321

Please sign in to comment.