Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX Futabanet : filter bad chapters & set baseURL #6017

Merged
merged 1 commit into from
Aug 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/web/mjs/connectors/Futabanet.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export default class Futabanet extends SpeedBinb {
super.label = 'がうがうモンスター (Futabanet Monster)';
this.tags = [ 'manga', 'japanese' ];
this.url = 'https://gaugau.futabanet.jp';
this.baseURL = 'https://reader.futabanet.jp';
}

async _getMangaFromURI(uri) {
Expand Down Expand Up @@ -41,7 +42,7 @@ export default class Futabanet extends SpeedBinb {

async _getChapters(manga) {
let request = new Request(new URL(manga.id, this.url), this.requestOptions);
let data = await this.fetchDOM(request, 'section.detail-sec.detail-ex div.detail-ex__btn-item a');
let data = await this.fetchDOM(request, 'section.detail-sec.detail-ex div.detail-ex__btn-list-wrap div.detail-ex__btn-item a[href*="reader.futabanet"]');
return data.map(element => {
let title = element.querySelector('span:not(.new)');
return {
Expand All @@ -50,5 +51,4 @@ export default class Futabanet extends SpeedBinb {
};
});
}

}