parent
eee440cb7b
commit
271c770af0
|
@ -5,7 +5,7 @@ ext {
|
||||||
appName = 'Tachiyomi: RawLH'
|
appName = 'Tachiyomi: RawLH'
|
||||||
pkgNameSuffix = 'ja.rawlh'
|
pkgNameSuffix = 'ja.rawlh'
|
||||||
extClass = '.Rawlh'
|
extClass = '.Rawlh'
|
||||||
extVersionCode = 5
|
extVersionCode = 6
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -78,9 +78,6 @@ class Rawlh : ParsedHttpSource() {
|
||||||
|
|
||||||
override fun searchMangaNextPageSelector() = popularMangaNextPageSelector()
|
override fun searchMangaNextPageSelector() = popularMangaNextPageSelector()
|
||||||
|
|
||||||
private fun searchGenresNextPageSelector() = popularMangaNextPageSelector()
|
|
||||||
|
|
||||||
|
|
||||||
override fun mangaDetailsParse(document: Document): SManga {
|
override fun mangaDetailsParse(document: Document): SManga {
|
||||||
val manga = SManga.create()
|
val manga = SManga.create()
|
||||||
val infoElement = document.select("div.row").first()
|
val infoElement = document.select("div.row").first()
|
||||||
|
@ -104,11 +101,11 @@ class Rawlh : ParsedHttpSource() {
|
||||||
else -> SManga.UNKNOWN
|
else -> SManga.UNKNOWN
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun chapterListSelector() = ".list-chapters p"
|
override fun chapterListSelector() = " table.table.table-hover tbody tr"
|
||||||
|
|
||||||
override fun chapterFromElement(element: Element): SChapter {
|
override fun chapterFromElement(element: Element): SChapter {
|
||||||
val urlElement = element.select("a.chapter").first()
|
val urlElement = element.select("td a").first()
|
||||||
val timeElement = element.select(".pubDate time").first()
|
val timeElement = element.select("td time").first()
|
||||||
|
|
||||||
val chapter = SChapter.create()
|
val chapter = SChapter.create()
|
||||||
chapter.setUrlWithoutDomain("/" + urlElement.attr("href"))
|
chapter.setUrlWithoutDomain("/" + urlElement.attr("href"))
|
||||||
|
@ -146,7 +143,6 @@ class Rawlh : ParsedHttpSource() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
override fun pageListParse(document: Document): List<Page> {
|
override fun pageListParse(document: Document): List<Page> {
|
||||||
val pages = mutableListOf<Page>()
|
val pages = mutableListOf<Page>()
|
||||||
document.select("img.chapter-img").forEach {
|
document.select("img.chapter-img").forEach {
|
||||||
|
@ -180,10 +176,8 @@ class Rawlh : ParsedHttpSource() {
|
||||||
GenreList(getGenreList())
|
GenreList(getGenreList())
|
||||||
)
|
)
|
||||||
|
|
||||||
/* [...document.querySelectorAll("div.panel-body a")].map((el,i) =>
|
// [...document.querySelectorAll("div.panel-body a")].map((el,i) => `Genre("${el.innerText.trim()}")`).join(',\n')
|
||||||
* { return `Genre("${el.innerHTML}")` }).join(',\n')
|
// on https://lhscan.net/search
|
||||||
* on http://rawlh.com/search
|
|
||||||
*/
|
|
||||||
private fun getGenreList() = listOf(
|
private fun getGenreList() = listOf(
|
||||||
Genre("4-Koma"),
|
Genre("4-Koma"),
|
||||||
Genre("Action"),
|
Genre("Action"),
|
||||||
|
|
Loading…
Reference in New Issue