Fixed title parsing for DisasterScans's mangaDetailsParse (#2529)
Fixed title parsing for DisasterScans's mangaDetailsParse
This commit is contained in:
parent
7e8b16ae04
commit
22b48ab3ca
|
@ -5,7 +5,7 @@ ext {
|
||||||
appName = 'Tachiyomi: Madara (multiple sources)'
|
appName = 'Tachiyomi: Madara (multiple sources)'
|
||||||
pkgNameSuffix = "all.madara"
|
pkgNameSuffix = "all.madara"
|
||||||
extClass = '.MadaraFactory'
|
extClass = '.MadaraFactory'
|
||||||
extVersionCode = 63
|
extVersionCode = 64
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -480,6 +480,18 @@ class ThreeSixtyFiveManga: Madara("365Manga","https://365manga.com","en") {
|
||||||
|
|
||||||
class DisasterScans: Madara("Disaster Scans","https://disasterscans.com","en") {
|
class DisasterScans: Madara("Disaster Scans","https://disasterscans.com","en") {
|
||||||
override val popularMangaUrlSelector = "div.post-title a:last-child"
|
override val popularMangaUrlSelector = "div.post-title a:last-child"
|
||||||
|
|
||||||
|
override fun mangaDetailsParse(document: Document): SManga {
|
||||||
|
val manga = super.mangaDetailsParse(document)
|
||||||
|
|
||||||
|
with(document) {
|
||||||
|
select("div.post-title h1").first()?.let {
|
||||||
|
manga.title = it.ownText()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return manga
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class MangaKiss: Madara("MangaKiss", "https://mangakiss.org", "en", SimpleDateFormat("dd/MM/yyyy", Locale.US)) {
|
class MangaKiss: Madara("MangaKiss", "https://mangakiss.org", "en", SimpleDateFormat("dd/MM/yyyy", Locale.US)) {
|
||||||
|
|
Loading…
Reference in New Issue