Skip to content

Commit

Permalink
ComicK : Fix getting pages
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeZeDev authored Jul 12, 2024
1 parent 7926a22 commit b4787e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/web/mjs/connectors/ComicK.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ export default class ComicK extends Connector {
}

async _getPages(chapter) {
const uri = new URL('/chapter/' + chapter.id, this.apiurl);
const uri = new URL('/chapter/' + chapter.id+'?tachiyomi=true', this.apiurl);
const request = new Request(uri, this.requestOptions);
request.headers.set('x-user-agent', HeaderGenerator.randomUA() );
const data = await this.fetchJSONEx(request);
return data.chapter.md_images.map(image => `https://meo.comick.pictures/${image.b2key}`);
return data.chapter.images.map(image => image.url);
}

async fetchJSONEx(request, retries) {
Expand Down

0 comments on commit b4787e5

Please sign in to comment.