NudeMoon: fix strange rare problem with setUrlWithoutDomain (#16083)

fix strange rare problem with setUrlWithoutDomain
This commit is contained in:
abubaca4 2023-04-17 21:45:20 +03:00 committed by GitHub
parent e3d27184ae
commit e253ad37c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'Nude-Moon'
pkgNameSuffix = 'ru.nudemoon'
extClass = '.Nudemoon'
extVersionCode = 14
extVersionCode = 15
isNsfw = true
}

View File

@ -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")