Skip to content

Commit

Permalink
Add Comicride (#6635)
Browse files Browse the repository at this point in the history
* Add ComicRide

* Add ComicRide icon

* [ComicRide] Fix page count from 0

* Fix ComicRide Icon

* Delete src/web/img/connectors/ComicRide.mjs
  • Loading branch information
ignaciocastro authored and Sheepux committed Jan 2, 2024
1 parent ee3e324 commit 8f17cd7
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
Binary file added src/web/img/connectors/comicride
Binary file not shown.
24 changes: 24 additions & 0 deletions src/web/mjs/connectors/ComicRide.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import YoungChampion from './YoungChampion.mjs';

//ComiciViewer
export default class ComicRide extends YoungChampion {
constructor() {
super();
super.id = 'comicride';
super.label = 'ComicRide';
this.tags = ['manga', 'japanese'];
this.url = 'https://comicride.jp';
this.apiUrl = this.url;
this.links = {
login: 'https://comicride.jp/signin'
};
}
async _getMangas() {
let mangaList = [];
for (let page = 0, run = true; run; page++) {
const mangas = await this._getMangasFromPage(page);
mangas.length > 0 ? mangaList.push(...mangas) : run = false;
}
return mangaList;
}
}

0 comments on commit 8f17cd7

Please sign in to comment.