Manhastro: Fix manga status and add icon (#2066)

* Fix manga status

* Use 'contains' selector

Co-authored-by: Vetle Ledaal <vetle.ledaal@gmail.com>

* Add icons

---------

Co-authored-by: Vetle Ledaal <vetle.ledaal@gmail.com>
This commit is contained in:
Chopper 2024-03-24 01:21:44 -03:00 committed by Draff
parent 02d7019b46
commit d2fec71228
7 changed files with 3 additions and 1 deletions

View File

@ -3,7 +3,7 @@ ext {
extClass = '.Manhastro' extClass = '.Manhastro'
themePkg = 'madara' themePkg = 'madara'
baseUrl = 'https://manhastro.com' baseUrl = 'https://manhastro.com'
overrideVersionCode = 2 overrideVersionCode = 3
isNsfw = true isNsfw = true
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

View File

@ -26,6 +26,8 @@ class Manhastro : Madara(
override val mangaDetailsSelectorTitle = "div.summary_content h2" override val mangaDetailsSelectorTitle = "div.summary_content h2"
override val mangaDetailsSelectorStatus = "div.summary-heading:contains(Status) + div.summary-content"
override fun pageListParse(document: Document): List<Page> { override fun pageListParse(document: Document): List<Page> {
return document.selectFirst("script:containsData(imageLinks)")?.data() return document.selectFirst("script:containsData(imageLinks)")?.data()
?.let { imageLinksPattern.find(it)?.groups?.get(1)?.value } ?.let { imageLinksPattern.find(it)?.groups?.get(1)?.value }