parent
1ca834b9de
commit
dd5a80fb5c
@ -6,7 +6,7 @@ ext {
|
|||||||
extName = 'ComX'
|
extName = 'ComX'
|
||||||
pkgNameSuffix = 'ru.comx'
|
pkgNameSuffix = 'ru.comx'
|
||||||
extClass = '.ComX'
|
extClass = '.ComX'
|
||||||
extVersionCode = 13
|
extVersionCode = 14
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
@ -89,7 +89,7 @@ class ComX : ParsedHttpSource() {
|
|||||||
manga.thumbnail_url = baseUrl + element.select("img").first().attr("src")
|
manga.thumbnail_url = baseUrl + element.select("img").first().attr("src")
|
||||||
element.select(".readed__title a").first().let {
|
element.select(".readed__title a").first().let {
|
||||||
manga.setUrlWithoutDomain(it.attr("href"))
|
manga.setUrlWithoutDomain(it.attr("href"))
|
||||||
manga.title = it.text()
|
manga.title = it.text().split(" / ").first()
|
||||||
}
|
}
|
||||||
return manga
|
return manga
|
||||||
}
|
}
|
||||||
@ -109,7 +109,7 @@ class ComX : ParsedHttpSource() {
|
|||||||
manga.thumbnail_url = baseUrl + element.select("img").first().attr("src")
|
manga.thumbnail_url = baseUrl + element.select("img").first().attr("src")
|
||||||
element.select("a.latest__title").first().let {
|
element.select("a.latest__title").first().let {
|
||||||
manga.setUrlWithoutDomain(it.attr("href"))
|
manga.setUrlWithoutDomain(it.attr("href"))
|
||||||
manga.title = it.text()
|
manga.title = it.text().split(" / ").first()
|
||||||
}
|
}
|
||||||
return manga
|
return manga
|
||||||
}
|
}
|
||||||
@ -164,6 +164,7 @@ class ComX : ParsedHttpSource() {
|
|||||||
val infoElement = document.select("div.page__grid").first()
|
val infoElement = document.select("div.page__grid").first()
|
||||||
|
|
||||||
val manga = SManga.create()
|
val manga = SManga.create()
|
||||||
|
manga.title = infoElement.select(".page__title-original").text()
|
||||||
manga.author = infoElement.select(".page__list li:eq(1)").text()
|
manga.author = infoElement.select(".page__list li:eq(1)").text()
|
||||||
manga.genre = infoElement.select(".page__tags a").joinToString { it.text() }
|
manga.genre = infoElement.select(".page__tags a").joinToString { it.text() }
|
||||||
manga.status = parseStatus(infoElement.select(".page__list li:eq(2)").text())
|
manga.status = parseStatus(infoElement.select(".page__list li:eq(2)").text())
|
||||||
@ -171,8 +172,8 @@ class ComX : ParsedHttpSource() {
|
|||||||
manga.description = infoElement.select(".page__text ").text()
|
manga.description = infoElement.select(".page__text ").text()
|
||||||
|
|
||||||
val src = infoElement.select(".img-wide img").attr("src")
|
val src = infoElement.select(".img-wide img").attr("src")
|
||||||
if (src.contains(baseUrl.substringAfter("://"))) {
|
if (src.contains("://")) {
|
||||||
manga.thumbnail_url = "http:" + src
|
manga.thumbnail_url = src
|
||||||
} else {
|
} else {
|
||||||
manga.thumbnail_url = baseUrl + src
|
manga.thumbnail_url = baseUrl + src
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user