Qiximh: Fix manga url and set thumbnail_url (#10028)

This commit is contained in:
anenasa 2021-12-08 18:55:35 +08:00 committed by GitHub
parent 3f884c8248
commit 41f326eb54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'QiXiManhua' extName = 'QiXiManhua'
pkgNameSuffix = 'zh.qiximh' pkgNameSuffix = 'zh.qiximh'
extClass = '.Qiximh' extClass = '.Qiximh'
extVersionCode = 3 extVersionCode = 4
} }
apply from: "$rootDir/common.gradle" apply from: "$rootDir/common.gradle"

View File

@ -106,7 +106,7 @@ class Qiximh : HttpSource() {
thumbnail_url = targetObj["imgurl"]!!.jsonPrimitive.content thumbnail_url = targetObj["imgurl"]!!.jsonPrimitive.content
// Extension is wrongly adding the baseURL to the SManga. // Extension is wrongly adding the baseURL to the SManga.
// I kept it as it is to avoid user migrations. // I kept it as it is to avoid user migrations.
url = "$baseUrl/${targetObj["id"]!!.jsonPrimitive.int}" url = "$baseUrl/${targetObj["id"]!!.jsonPrimitive.int}/"
} }
} }
@ -183,7 +183,7 @@ class Qiximh : HttpSource() {
thumbnail_url = targetObj["imgs"]!!.jsonPrimitive.content thumbnail_url = targetObj["imgs"]!!.jsonPrimitive.content
// Extension is wrongly adding the baseURL to the SManga. // Extension is wrongly adding the baseURL to the SManga.
// I kept it as it is to avoid user migrations. // I kept it as it is to avoid user migrations.
url = "$baseUrl/${targetObj["id"]!!.jsonPrimitive.int}" url = "$baseUrl/${targetObj["id"]!!.jsonPrimitive.int}/"
} }
} }
@ -237,7 +237,7 @@ class Qiximh : HttpSource() {
return SManga.create().apply { return SManga.create().apply {
title = document.select("h1.name").text() title = document.select("h1.name").text()
thumbnail_url = document.select("div.comic_cover").attr("data-original")
author = document.select(".author_name").text() author = document.select(".author_name").text()
description = arrayOf( description = arrayOf(