Skip to content

Commit

Permalink
FIx UnionMangas : change domain and CSS selectors (#6299)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeZeDev authored Oct 7, 2023
1 parent 08918cf commit 1de6a4f
Showing 1 changed file with 4 additions and 4 deletions.
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

0 comments on commit 1de6a4f

Please sign in to comment.