MyHentaiGallery: Fix broken thumbnail_url in mangaDetailsParse (#13627)

* Remove broken thumbnail_url in mangaDetailsParse

* Add back thumbnail_url
This commit is contained in:
SuperCoolGuy855 2022-09-30 00:16:45 +07:00 committed by GitHub
parent 8553e161bc
commit 31f933ff08
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 = 'MyHentaiGallery'
pkgNameSuffix = 'en.myhentaigallery'
extClass = '.MyHentaiGallery'
extVersionCode = 3
extVersionCode = 4
isNsfw = true
}

View File

@ -111,7 +111,7 @@ class MyHentaiGallery : ParsedHttpSource() {
title = info.select("h1").text()
genre = info.select("div:containsOwn(categories) a").joinToString { it.text() }
artist = info.select("div:containsOwn(artists) a").text()
thumbnail_url = info.select("div.comic-cover img").attr("abs:src")
thumbnail_url = document.selectFirst(".comic-listing .comic-inner img")?.attr("src")
description = info.select("div:containsOwn(groups) a").let { groups ->
if (groups.isNotEmpty()) "Groups: ${groups.joinToString { it.text() }}\n" else ""
}