NineMangaEn - Account for subdomain (#2048)
NineMangaEn - Account for subdomain
This commit is contained in:
parent
f03a5c9469
commit
6e95420b7b
|
@ -5,7 +5,7 @@ ext {
|
||||||
appName = 'Tachiyomi: NineManga'
|
appName = 'Tachiyomi: NineManga'
|
||||||
pkgNameSuffix = "all.ninemanga"
|
pkgNameSuffix = "all.ninemanga"
|
||||||
extClass = '.NineMangaFactory'
|
extClass = '.NineMangaFactory'
|
||||||
extVersionCode = 7
|
extVersionCode = 8
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,7 @@ import eu.kanade.tachiyomi.source.SourceFactory
|
||||||
import eu.kanade.tachiyomi.source.model.FilterList
|
import eu.kanade.tachiyomi.source.model.FilterList
|
||||||
import eu.kanade.tachiyomi.source.model.SManga
|
import eu.kanade.tachiyomi.source.model.SManga
|
||||||
import okhttp3.Request
|
import okhttp3.Request
|
||||||
|
import org.jsoup.nodes.Element
|
||||||
import java.text.ParseException
|
import java.text.ParseException
|
||||||
import java.text.SimpleDateFormat
|
import java.text.SimpleDateFormat
|
||||||
import java.util.Calendar
|
import java.util.Calendar
|
||||||
|
@ -22,7 +23,15 @@ class NineMangaFactory : SourceFactory {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
class NineMangaEn : NineManga("NineMangaEn", "http://en.ninemanga.com", "en")
|
class NineMangaEn : NineManga("NineMangaEn", "http://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)
|
||||||
|
title = it.text()
|
||||||
|
}
|
||||||
|
thumbnail_url = element.select("img").attr("abs:src")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
class NineMangaEs : NineManga("NineMangaEs", "http://es.ninemanga.com", "es") {
|
class NineMangaEs : NineManga("NineMangaEs", "http://es.ninemanga.com", "es") {
|
||||||
// ES, FR, RU don't return results for searches with an apostrophe
|
// ES, FR, RU don't return results for searches with an apostrophe
|
||||||
|
|
Loading…
Reference in New Issue