Madokami: fix encoding special characters in url (#15950)

* Update Madokami.kt

* Update build.gradle
This commit is contained in:
mage-goo 2023-04-06 19:20:16 +07:00 committed by GitHub
parent 4c704f8f31
commit c3b43bedd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'Madokami' extName = 'Madokami'
pkgNameSuffix = 'en.madokami' pkgNameSuffix = 'en.madokami'
extClass = '.Madokami' extClass = '.Madokami'
extVersionCode = 5 extVersionCode = 6
} }
apply from: "$rootDir/common.gradle" apply from: "$rootDir/common.gradle"

View File

@ -66,7 +66,7 @@ class Madokami : ConfigurableSource, ParsedHttpSource() {
override fun popularMangaFromElement(element: Element): SManga { override fun popularMangaFromElement(element: Element): SManga {
val manga = SManga.create() val manga = SManga.create()
manga.setUrlWithoutDomain(element.attr("href")) manga.url = element.attr("href")
manga.title = URLDecoder.decode(element.attr("href").split("/").last(), "UTF-8").trimStart('!') manga.title = URLDecoder.decode(element.attr("href").split("/").last(), "UTF-8").trimStart('!')
return manga return manga
} }