update extraction for mangaUrlDirectory (#2535)
This commit is contained in:
parent
86cacd6f59
commit
da85b27a94
|
@ -3,7 +3,7 @@ ext {
|
||||||
extClass = '.ElarcPage'
|
extClass = '.ElarcPage'
|
||||||
themePkg = 'mangathemesia'
|
themePkg = 'mangathemesia'
|
||||||
baseUrl = 'https://elarctoons.com'
|
baseUrl = 'https://elarctoons.com'
|
||||||
overrideVersionCode = 6
|
overrideVersionCode = 7
|
||||||
isNsfw = false
|
isNsfw = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,7 @@ package eu.kanade.tachiyomi.extension.en.elarcpage
|
||||||
|
|
||||||
import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia
|
import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia
|
||||||
import eu.kanade.tachiyomi.network.GET
|
import eu.kanade.tachiyomi.network.GET
|
||||||
|
import okhttp3.HttpUrl.Companion.toHttpUrl
|
||||||
import okhttp3.Interceptor
|
import okhttp3.Interceptor
|
||||||
import okhttp3.Response
|
import okhttp3.Response
|
||||||
import org.jsoup.Jsoup
|
import org.jsoup.Jsoup
|
||||||
|
@ -63,12 +64,10 @@ class ElarcPage : MangaThemesia(
|
||||||
request.url.toString(),
|
request.url.toString(),
|
||||||
)
|
)
|
||||||
|
|
||||||
document.select("#menu-item-14 > a, a:contains(All Series), #main-menu a, .mm a")
|
document.selectFirst(".serieslist > ul > li a.series")
|
||||||
.reversed()
|
|
||||||
.map { it.attr("href") }
|
|
||||||
.lastOrNull { it.length >= 2 && it[0] == '/' }
|
|
||||||
?.let {
|
?.let {
|
||||||
setMangaUrlDirectory(it)
|
val mangaUrlDirectory = it.attr("abs:href").toHttpUrl().pathSegments.first()
|
||||||
|
setMangaUrlDirectory("/$mangaUrlDirectory")
|
||||||
dynamicUrlUpdated = timeNow
|
dynamicUrlUpdated = timeNow
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue