From e253ad37c1766a14aa62904b4681e940fdd9203e Mon Sep 17 00:00:00 2001 From: abubaca4 <55701175+abubaca4@users.noreply.github.com> Date: Mon, 17 Apr 2023 21:45:20 +0300 Subject: [PATCH] NudeMoon: fix strange rare problem with setUrlWithoutDomain (#16083) fix strange rare problem with setUrlWithoutDomain --- src/ru/nudemoon/build.gradle | 2 +- .../src/eu/kanade/tachiyomi/extension/ru/nudemoon/Nudemoon.kt | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ru/nudemoon/build.gradle b/src/ru/nudemoon/build.gradle index ebcbbbdad..a2134e4fa 100644 --- a/src/ru/nudemoon/build.gradle +++ b/src/ru/nudemoon/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'Nude-Moon' pkgNameSuffix = 'ru.nudemoon' extClass = '.Nudemoon' - extVersionCode = 14 + extVersionCode = 15 isNsfw = true } diff --git a/src/ru/nudemoon/src/eu/kanade/tachiyomi/extension/ru/nudemoon/Nudemoon.kt b/src/ru/nudemoon/src/eu/kanade/tachiyomi/extension/ru/nudemoon/Nudemoon.kt index 47735631c..b69fdc6de 100644 --- a/src/ru/nudemoon/src/eu/kanade/tachiyomi/extension/ru/nudemoon/Nudemoon.kt +++ b/src/ru/nudemoon/src/eu/kanade/tachiyomi/extension/ru/nudemoon/Nudemoon.kt @@ -202,6 +202,9 @@ class Nudemoon : ParsedHttpSource() { val nameAndUrl = element.select("tr[valign=top] a:has(h2)") name = nameAndUrl.select("h2").text() setUrlWithoutDomain(nameAndUrl.attr("abs:href")) + if (url.contains(baseUrl)) { + url = url.replace(baseUrl, "") + } val informBlock = element.select("tr[valign=top] td[align=left]") scanlator = informBlock.select("a[href*=perevod]").text() date_upload = informBlock.select("span.small2")