Skip to content

Commit

Permalink
fix unionmangas (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeZeDev authored Oct 2, 2023
1 parent c35e573 commit b79bd18
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions web/src/engine/websites/UnionMangas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { type Chapter, DecoratableMangaScraper, type Manga } from '../providers/
import * as Common from './decorators/Common';
import * as MangaStream from './decorators/WordPressMangaStream';

@Common.MangaCSS(/^https?:\/\/guimah\.com\/perfil\//, 'div.perfil-manga div.row div.col-md-12 h2')
@Common.MangasMultiPageCSS('/lista-mangas/visualizacoes/{page}', 'div.tamanho-bloco-perfil div.lista-mangas-novos > a:last-of-type')
@Common.MangaCSS(/^https?:\/\/guimah\.com\/manga\//, 'div.manga-pagina div.row div.col-md-12 h2')
@Common.MangasMultiPageCSS('/lista-mangas/visualizacoes/{page}', 'div.tamanho-bloco-perfil div.lista-mangas > a:last-of-type')
@MangaStream.PagesSinglePageCSS([/banner_/], 'img.img-manga')
@Common.ImageAjax()

Expand All @@ -21,7 +21,7 @@ export default class extends DecoratableMangaScraper {

//chapters filtering because there are dupe, try My hero Academia
public override async FetchChapters(manga: Manga): Promise<Chapter[]> {
const chapters = await Common.FetchChaptersSinglePageCSS.call(this, manga, 'div.perfil-manga div.capitulos div:first-of-type > a');
const chapters = await Common.FetchChaptersSinglePageCSS.call(this, manga, 'div.manga-pagina div.capitulos div:first-of-type > a');
return chapters.filter((chapter, index) => {
return index === chapters.findIndex(c => c.Identifier === chapter.Identifier);
});
Expand Down
4 changes: 2 additions & 2 deletions web/src/engine/websites/UnionMangas_e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ const config = {
//timeout : 25000 //homepage load is damn slow in real browser
},
container: {
url: 'https://guimah.com/perfil/V1lmMXhZa1NEdWJicUhxYUdRPT0=',
id: '/perfil/V1lmMXhZa1NEdWJicUhxYUdRPT0=',
url: 'https://guimah.com/manga/one-piece',
id: '/manga/one-piece',
title: 'One Piece'
},
child: {
Expand Down

0 comments on commit b79bd18

Please sign in to comment.