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 and Sheepux committed Jan 2, 2024
1 parent a9a0547 commit 51e13a1
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 51e13a1

Please sign in to comment.