HanhanKuman thumbnails (#1622)

HanhanKuman thumbnails
This commit is contained in:
Mike
2019-10-07 21:59:29 -04:00
committed by arkon
parent 824f31e181
commit e5b4c01cd2
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: Hanhankuman' appName = 'Tachiyomi: Hanhankuman'
pkgNameSuffix = 'zh.hanhankuman' pkgNameSuffix = 'zh.hanhankuman'
extClass = '.HanhanKuman' extClass = '.HanhanKuman'
extVersionCode = 1 extVersionCode = 2
libVersion = '1.2' libVersion = '1.2'
} }

View File

@ -49,7 +49,7 @@ class HanhanKuman : ParsedHttpSource() {
manga.url = element.select("a").first()!!.attr("href") manga.url = element.select("a").first()!!.attr("href")
manga.title = element.select("span.cComicTitle").text().trim() manga.title = element.select("span.cComicTitle").text().trim()
manga.author = element.select("span.cComicAuthor").first()?.text()?.trim() manga.author = element.select("span.cComicAuthor").first()?.text()?.trim()
manga.thumbnail_url = element.select("div.cListSlt > a > img").attr("src") manga.thumbnail_url = element.select("div.cListSlt > a > img").attr("abs:src")
manga.description = element.select(".cComicMemo").text().trim() manga.description = element.select(".cComicMemo").text().trim()
return manga return manga
@ -60,7 +60,7 @@ class HanhanKuman : ParsedHttpSource() {
element.select("a").first().let { element.select("a").first().let {
manga.setUrlWithoutDomain(it.attr("href")) manga.setUrlWithoutDomain(it.attr("href"))
manga.title = it.attr("title").trim() manga.title = it.attr("title").trim()
manga.thumbnail_url = it.select("img").attr("src").trim() manga.thumbnail_url = it.select("img").attr("abs:src").trim()
} }
return manga return manga
} }