Mangamo: Fix URLs for manga with question marks in title (#10847)
* Mangamo: fix URLs for manga with question marks in title * Mangamo: bump version
This commit is contained in:
parent
dd6f475a01
commit
7b44fec7db
@ -1,7 +1,7 @@
|
||||
ext {
|
||||
extName = 'Mangamo'
|
||||
extClass = '.Mangamo'
|
||||
extVersionCode = 6
|
||||
extVersionCode = 7
|
||||
isNsfw = false
|
||||
}
|
||||
|
||||
|
||||
@ -12,6 +12,7 @@ import kotlinx.serialization.json.Json
|
||||
import kotlinx.serialization.modules.SerializersModule
|
||||
import kotlinx.serialization.serializer
|
||||
import okhttp3.Headers
|
||||
import java.net.URLEncoder
|
||||
|
||||
class MangamoHelper(headers: Headers) {
|
||||
|
||||
@ -45,7 +46,7 @@ class MangamoHelper(headers: Headers) {
|
||||
|
||||
private fun getCatalogUrl(series: SeriesDto): String {
|
||||
val lowercaseHyphenated = series.name_lowercase!!.replace(' ', '-')
|
||||
return "/catalog/$lowercaseHyphenated"
|
||||
return "/catalog/${URLEncoder.encode(lowercaseHyphenated, "utf-8")}"
|
||||
}
|
||||
|
||||
fun getSeriesUrl(series: SeriesDto): String {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user