Skip to content

Commit

Permalink
Fix mangajar + update makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
elboletaire committed Jan 5, 2024
1 parent 8fd3bdf commit 1e6843b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
2 changes: 0 additions & 2 deletions grabber/manganelo.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ func (m *Manganelo) Test() (bool, error) {
"#examples div.chapter-list .row",
// mangakakalot style
"div.chapter-list .row",
// mangajar style (required when there are no more pages)
"article.chaptersList li.chapter-item",
}

// mangajar has ajax pagination
Expand Down
11 changes: 10 additions & 1 deletion grabber/plainhtml.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,15 @@ func (m *PlainHTML) Test() (bool, error) {
Link: "a",
Image: "#readerarea img.ts-main-image",
},
// mangajar.pro
{
Title: "h1 .post-name",
Rows: "article.chaptersList li.chapter-item",
Chapter: ".chapter-title",
ChapterTitle: "a",
Link: "a",
Image: "#chapter-slider .carousel-item img",
},
}

// for the same priority reasons, we need to iterate over the selectors
Expand All @@ -87,7 +96,7 @@ func (m *PlainHTML) Test() (bool, error) {

// Ttitle returns the manga title
func (m PlainHTML) FetchTitle() (string, error) {
title := m.doc.Find("h1")
title := m.doc.Find(m.site.Title)

return title.Text(), nil
}
Expand Down
11 changes: 7 additions & 4 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,14 @@ else
go test -v ./...
endif

grabber: grabber/manganelo grabber/inmanga grabber/mangadex grabber/tcb
grabber: grabber/manganelo grabber/inmanga grabber/mangadex grabber/tcb grabber/html

grabber/manganelo:
go run . https://mangakakalot.com/manga/vd921334 7
go run . https://ww5.manganelo.tv/manga/manga-aa951409 3
go run . http://manganelos.com/manga/dont-pick-up-what-youve-thrown-away 10-12 --bundle
go run . https://readmangabat.com/read-ov357862 23
go run . https://chapmanganato.com/manga-aa951409 50
go run . https://h.mangabat.com/read-tc397521 5
go run . https://mangajar.com/manga/chainsaw-man-absTop-abs3bof 23

grabber/inmanga:
go run . https://inmanga.com/ver/manga/One-Piece/dfc7ecb5-e9b3-4aa5-a61b-a498993cd935 1
Expand All @@ -52,4 +50,9 @@ grabber/mangadex:

grabber/tcb:
go run . https://www.tcbscans.net/manga/one-piece/ 5
go run . https://en.leviatanscans.com/home/manga/i-became-the-male-leads-adopted-daughter/ 5
go run . https://lscomic.com/manga/peerless-dad/ 285

grabber/html:
go run . https://tcbscans.com/mangas/5/one-piece 1100
go run . https://asuratoon.com/manga/0435219386-return-of-the-sss-class-ranker/ 85
go run . https://mangajar.pro/manga/haite-kudasai-takamine-san 43

0 comments on commit 1e6843b

Please sign in to comment.