Fix loading cover (#9089)

This commit is contained in:
Maxim Molochkov 2021-09-16 21:53:21 +04:00 committed by GitHub
parent 614e3d0597
commit 4f8503d51f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'MangaLib'
pkgNameSuffix = 'ru.libmanga'
extClass = '.LibManga'
extVersionCode = 53
extVersionCode = 54
}
apply from: "$rootDir/common.gradle"

View File

@ -190,7 +190,7 @@ class LibManga : ConfigurableSource, HttpSource() {
}
val genres = document.select(".media-tags > a").map { it.text() }
manga.title = document.select(".media-name__alt").text()
manga.thumbnail_url = baseUrl + document.select(".media-sidebar__cover > img").attr("src").substringAfter(baseOrig)
manga.thumbnail_url = document.select(".media-sidebar__cover > img").attr("src").substringAfter(baseOrig)
manga.author = body.select("div.media-info-list__title:contains(Автор) + div").text()
manga.artist = body.select("div.media-info-list__title:contains(Художник) + div").text()
manga.status = if (document.html().contains("Манга удалена по просьбе правообладателей") ||