Skip to content

Commit

Permalink
FIX FirstKiss : filter images (#6182)
Browse files Browse the repository at this point in the history
to avoid 404 errors and site logos
  • Loading branch information
MikeZeDev authored Sep 2, 2023
1 parent 47996a9 commit e69fc21
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/web/mjs/connectors/FirstKiss.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export default class FirstKiss extends Connector {
const uri = new URL(chapter.id, this.url);
const request = new Request(uri, this.requestOptions);
const data = await this.fetchDOM(request, 'div.reading-detail div.page-chapter source');
return data.map(image => this.createConnectorURI(this.getAbsolutePath(image, request.url)));
return data.filter(image => !image.src.match(/\/logos\/|pic_999/)).
map(image => this.createConnectorURI(this.getAbsolutePath(image, request.url)));
}
}

0 comments on commit e69fc21

Please sign in to comment.