fix mangahere author/artist now showing (#183)

This commit is contained in:
Carlos 2018-02-04 12:22:11 -05:00 committed by inorichi
parent 0138f0b9ef
commit b8283aecba
2 changed files with 4 additions and 4 deletions

View File

@ -5,8 +5,8 @@ ext {
appName = 'Tachiyomi: Mangahere' appName = 'Tachiyomi: Mangahere'
pkgNameSuffix = "en.mangahere" pkgNameSuffix = "en.mangahere"
extClass = '.Mangahere' extClass = '.Mangahere'
extVersionCode = 5 extVersionCode = 6
extVersionSuffix = 3 extVersionSuffix = 4
libVersion = '1.2' libVersion = '1.2'
} }

View File

@ -112,8 +112,8 @@ class Mangahere : ParsedHttpSource() {
val licensedElement = document.select(".mt10.color_ff00.mb10").first() val licensedElement = document.select(".mt10.color_ff00.mb10").first()
val manga = SManga.create() val manga = SManga.create()
manga.author = infoElement.select("a[href^=//www.mangahere.co/author/]").first()?.text() manga.author = infoElement.select("a[href*=author/]").first()?.text()
manga.artist = infoElement.select("a[href^=//www.mangahere.co/artist/]").first()?.text() manga.artist = infoElement.select("a[href*=artist/]").first()?.text()
manga.genre = infoElement.select("li:eq(3)").first()?.text()?.substringAfter("Genre(s):") manga.genre = infoElement.select("li:eq(3)").first()?.text()?.substringAfter("Genre(s):")
manga.description = infoElement.select("#show").first()?.text()?.substringBeforeLast("Show less") manga.description = infoElement.select("#show").first()?.text()?.substringBeforeLast("Show less")
manga.thumbnail_url = detailElement.select("img.img").first()?.attr("src") manga.thumbnail_url = detailElement.select("img.img").first()?.attr("src")