TheDuckWebcomics: fix image URL (#17034)

This commit is contained in:
ObserverOfTime 2023-07-09 17:13:46 +03:00 committed by GitHub
parent f1a52a29be
commit 4847904078
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 {
extName = 'The Duck Webcomics'
pkgNameSuffix = 'en.theduckwebcomics'
extClass = '.TheDuckWebcomics'
extVersionCode = 1
extVersionCode = 2
isNsfw = true
}

View File

@ -50,7 +50,7 @@ class TheDuckWebcomics : ParsedHttpSource() {
addQueryParameter("search", query)
addQueryParameter("page", page.toString())
filters.forEach { (it as QueryParam).encode(this) }
GET(toString(), headers)
GET(build(), headers)
}
override fun searchMangaFromElement(element: Element) =
@ -85,7 +85,7 @@ class TheDuckWebcomics : ParsedHttpSource() {
}
override fun pageListParse(document: Document) =
listOf(Page(0, "", document.selectFirst(".page-image")!!.attr("src")))
listOf(Page(0, "", document.selectFirst(".page-image")!!.absUrl("src")))
override fun mangaDetailsParse(document: Document) =
throw UnsupportedOperationException("Not used")