[Fix] Mangakakalot Redirect (#1728)

[Fix] Mangakakalot Redirect
This commit is contained in:
happywillow0 2019-10-31 23:21:31 -04:00 committed by arkon
parent d992ba0e6f
commit 27c456e66d
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: MangaBox (Mangakakalot and others)'
pkgNameSuffix = 'all.mangabox'
extClass = '.MangaBoxFactory'
extVersionCode = 2
extVersionCode = 3
libVersion = '1.2'
}

View File

@ -58,7 +58,7 @@ abstract class MangaBox (
override fun popularMangaFromElement(element: Element): SManga {
val manga = SManga.create()
element.select("h3 a").first().let {
manga.setUrlWithoutDomain(it.attr("abs:href"))
manga.url = it.attr("abs:href").substringAfter(baseUrl) // intentionally not using setUrlWithoutDomain
manga.title = it.text()
}
manga.thumbnail_url = element.select("img").first().attr("abs:src")