From 4847904078a862e5615e48e447816e23e23fda4a Mon Sep 17 00:00:00 2001 From: ObserverOfTime Date: Sun, 9 Jul 2023 17:13:46 +0300 Subject: [PATCH] TheDuckWebcomics: fix image URL (#17034) --- src/en/theduckwebcomics/build.gradle | 2 +- .../extension/en/theduckwebcomics/TheDuckWebcomics.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/en/theduckwebcomics/build.gradle b/src/en/theduckwebcomics/build.gradle index a1f6d48b2..1dc2af8f1 100644 --- a/src/en/theduckwebcomics/build.gradle +++ b/src/en/theduckwebcomics/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'The Duck Webcomics' pkgNameSuffix = 'en.theduckwebcomics' extClass = '.TheDuckWebcomics' - extVersionCode = 1 + extVersionCode = 2 isNsfw = true } diff --git a/src/en/theduckwebcomics/src/eu/kanade/tachiyomi/extension/en/theduckwebcomics/TheDuckWebcomics.kt b/src/en/theduckwebcomics/src/eu/kanade/tachiyomi/extension/en/theduckwebcomics/TheDuckWebcomics.kt index 3c9dc6c86..ef8752242 100644 --- a/src/en/theduckwebcomics/src/eu/kanade/tachiyomi/extension/en/theduckwebcomics/TheDuckWebcomics.kt +++ b/src/en/theduckwebcomics/src/eu/kanade/tachiyomi/extension/en/theduckwebcomics/TheDuckWebcomics.kt @@ -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")