[Fix] Mangafree - url with brackets (#1708)

[Fix] Mangafree - url with brackets
This commit is contained in:
happywillow0 2019-10-26 10:41:41 -04:00 committed by arkon
parent 23a9d3d7c4
commit ba759b7678
2 changed files with 3 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: Mangafree'
pkgNameSuffix = 'en.mangafree'
extClass = '.Mangafree'
extVersionCode = 3
extVersionCode = 4
libVersion = '1.2'
}

View File

@ -135,7 +135,8 @@ class Mangafree : ParsedHttpSource() {
val urlElement = element.select("a").first()
val chapter = SChapter.create()
chapter.setUrlWithoutDomain(urlElement.attr("href"))
val url = urlElement.attr("href").replace("[","%255B").replace("]","%255D")
chapter.setUrlWithoutDomain(url)
chapter.name = urlElement.text()
return chapter
}