Update LibManga (#2225)

Update LibManga
This commit is contained in:
happywillow0 2020-02-10 07:20:21 -05:00 committed by GitHub
parent cb24e3f1f1
commit be4bcfcd7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: MangaLib'
pkgNameSuffix = 'ru.libmanga'
extClass = '.LibManga'
extVersionCode = 10
extVersionCode = 11
libVersion = '1.2'
}

View File

@ -109,7 +109,7 @@ class LibManga : ConfigurableSource, HttpSource() {
val link = element.select("a").first()
val img = link.select("img").first()
val manga = SManga.create()
manga.thumbnail_url = img.attr("data-src")
manga.thumbnail_url = baseUrl+img.attr("data-src").substringAfter(baseUrl)
.replace("cover_thumb", "cover_250x350")
manga.setUrlWithoutDomain(link.attr("href"))
manga.title = img.attr("alt")
@ -179,7 +179,7 @@ class LibManga : ConfigurableSource, HttpSource() {
return manga
}
val body = document.select("div.section__body").first()
manga.title = document.select(".manga-title h1").text()
manga.title = document.select(".manga-title small").text().substringBefore("/").trim()
manga.thumbnail_url = body.select(".manga__cover").attr("src")
manga.author = body.select(".info-list__row:nth-child(2) > a").text()
manga.artist = body.select(".info-list__row:nth-child(3) > a").text()