Fixed title parsing for DisasterScans's mangaDetailsParse (#2529)

Fixed title parsing for DisasterScans's mangaDetailsParse
This commit is contained in:
SkiFire13 2020-03-27 21:52:40 +01:00 committed by GitHub
parent 7e8b16ae04
commit 22b48ab3ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 1 deletions

View File

@ -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'
} }

View File

@ -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)) {