MangaKakalot: handle older entries (fixes inorichi/tachiyomi#1992) (#1036)

This commit is contained in:
Eugene 2019-04-19 09:39:06 -04:00 committed by GitHub
parent 51e644cd82
commit d2d73b7cf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 4 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: MangaKakalot'
pkgNameSuffix = 'en.mangakakalot'
extClass = '.Mangakakalot'
extVersionCode = 5
extVersionCode = 6
libVersion = '1.2'
}

View File

@ -69,7 +69,10 @@ class Mangakakalot : ParsedHttpSource() {
override fun searchMangaNextPageSelector() = popularMangaNextPageSelector()
override fun mangaDetailsRequest(manga: SManga): Request {
return GET(manga.url, headers)
if (manga.url.startsWith("http")) {
return GET(manga.url, headers)
}
return super.mangaDetailsRequest(manga)
}
override fun mangaDetailsParse(document: Document): SManga {
@ -97,7 +100,10 @@ class Mangakakalot : ParsedHttpSource() {
}
override fun chapterListRequest(manga: SManga): Request {
return GET(manga.url, headers)
if (manga.url.startsWith("http")) {
return GET(manga.url, headers)
}
return super.chapterListRequest(manga)
}
override fun chapterListSelector() = "div.chapter-list div.row"
@ -144,7 +150,10 @@ class Mangakakalot : ParsedHttpSource() {
}
override fun pageListRequest(chapter: SChapter): Request {
return GET(chapter.url, headers)
if (chapter.url.startsWith("http")) {
return GET(chapter.url, headers)
}
return super.pageListRequest(chapter)
}
override fun pageListParse(document: Document): List<Page> {