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 UnionMangas : change domain and CSS selectors #6299

Merged
merged 1 commit into from
Oct 7, 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
8 changes: 4 additions & 4 deletions src/web/mjs/connectors/UnionMangas.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ export default class UnionMangas extends Connector {
super.id = 'unionmangas';
super.label = 'UnionMangas';
this.tags = [ 'manga', 'portuguese' ];
this.url = 'https://guimah.com';
this.url = 'https://unionmangasbr.top';
this.links = {
login: 'https://guimah.com/login'
login: 'https://unionmangasbr.top/login'
};
}

Expand All @@ -34,7 +34,7 @@ export default class UnionMangas extends Connector {
async _getMangasFromPage(page) {
const uri = new URL('/lista-mangas/visualizacoes/' + page, this.url);
const request = new Request(uri, this.requestOptions);
const data = await this.fetchDOM(request, 'div.tamanho-bloco-perfil div.lista-mangas-novos > a:last-of-type', 3);
const data = await this.fetchDOM(request, 'div.tamanho-bloco-perfil div.lista-itens > a:last-of-type', 3);
return data.map(element => {
return {
id: this.getRootRelativeOrAbsoluteLink(element, this.url),
Expand All @@ -46,7 +46,7 @@ export default class UnionMangas extends Connector {
async _getChapters(manga) {
const uri = new URL(manga.id, this.url);
const request = new Request(uri, this.requestOptions);
const data = await this.fetchDOM(request, 'div.perfil-manga div.capitulos div:first-of-type > a');
const data = await this.fetchDOM(request, 'div div.capitulos div:first-of-type > a');
return data.map(element => {
return {
id: this.getRootRelativeOrAbsoluteLink(element, this.url),
Expand Down