From ba759b76785209f3067056f1113cae435c8f7b5a Mon Sep 17 00:00:00 2001 From: happywillow0 <45346080+happywillow0@users.noreply.github.com> Date: Sat, 26 Oct 2019 10:41:41 -0400 Subject: [PATCH] [Fix] Mangafree - url with brackets (#1708) [Fix] Mangafree - url with brackets --- src/en/mangafree/build.gradle | 2 +- .../eu/kanade/tachiyomi/extension/en/mangafree/Mangafree.kt | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/en/mangafree/build.gradle b/src/en/mangafree/build.gradle index 71e1db225..7cf490583 100644 --- a/src/en/mangafree/build.gradle +++ b/src/en/mangafree/build.gradle @@ -5,7 +5,7 @@ ext { appName = 'Tachiyomi: Mangafree' pkgNameSuffix = 'en.mangafree' extClass = '.Mangafree' - extVersionCode = 3 + extVersionCode = 4 libVersion = '1.2' } diff --git a/src/en/mangafree/src/eu/kanade/tachiyomi/extension/en/mangafree/Mangafree.kt b/src/en/mangafree/src/eu/kanade/tachiyomi/extension/en/mangafree/Mangafree.kt index a11d4274a..179cdb653 100644 --- a/src/en/mangafree/src/eu/kanade/tachiyomi/extension/en/mangafree/Mangafree.kt +++ b/src/en/mangafree/src/eu/kanade/tachiyomi/extension/en/mangafree/Mangafree.kt @@ -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 }