-
Notifications
You must be signed in to change notification settings - Fork 467
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add ComicRide * Add ComicRide icon * [ComicRide] Fix page count from 0 * Fix ComicRide Icon * Delete src/web/img/connectors/ComicRide.mjs
- Loading branch information
1 parent
ee3e324
commit 8f17cd7
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |