Fix NineMangaEn (#8709)

- Ignore subdomain completely for en site.
This commit is contained in:
happywillow0 2021-08-21 13:33:02 -04:00 committed by GitHub
parent 1d9923156f
commit 8bfbfe7f43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'NineManga'
pkgNameSuffix = "all.ninemanga"
extClass = '.NineMangaFactory'
extVersionCode = 14
extVersionCode = 15
libVersion = '1.2'
}

View File

@ -26,7 +26,7 @@ class NineMangaFactory : SourceFactory {
class NineMangaEn : NineManga("NineMangaEn", "https://en.ninemanga.com", "en") {
override fun latestUpdatesFromElement(element: Element) = SManga.create().apply {
element.select("a.bookname").let {
url = it.attr("abs:href").replace("www", "en").substringAfter(baseUrl)
url = it.attr("abs:href").substringAfter("ninemanga.com")
title = it.text()
}
thumbnail_url = element.select("img").attr("abs:src")