diff --git a/src/en/oppaistream/build.gradle b/src/en/oppaistream/build.gradle index eff16da64..e2a10f04f 100644 --- a/src/en/oppaistream/build.gradle +++ b/src/en/oppaistream/build.gradle @@ -1,7 +1,7 @@ ext { extName = 'Oppai Stream' extClass = '.OppaiStream' - extVersionCode = 2 + extVersionCode = 3 isNsfw = true } diff --git a/src/en/oppaistream/src/eu/kanade/tachiyomi/extension/en/oppaistream/OppaiStream.kt b/src/en/oppaistream/src/eu/kanade/tachiyomi/extension/en/oppaistream/OppaiStream.kt index f273d33f3..95e0e3b30 100644 --- a/src/en/oppaistream/src/eu/kanade/tachiyomi/extension/en/oppaistream/OppaiStream.kt +++ b/src/en/oppaistream/src/eu/kanade/tachiyomi/extension/en/oppaistream/OppaiStream.kt @@ -16,6 +16,7 @@ import okhttp3.Response import org.jsoup.nodes.Document import org.jsoup.nodes.Element import rx.Observable +import java.net.URLDecoder import java.util.Calendar class OppaiStream : ParsedHttpSource() { @@ -115,7 +116,13 @@ class OppaiStream : ParsedHttpSource() { return SManga.create().apply { thumbnail_url = element.select("img.read-cover").attr("src") title = element.select("h3.man-title").text() - setUrlWithoutDomain(element.absUrl("href")) + val rawUrl = element.absUrl("href") + val url = if (rawUrl.contains("/fw?to=")) { + URLDecoder.decode(rawUrl.substringAfter("/fw?to="), "UTF-8") + } else { + rawUrl + } + setUrlWithoutDomain(url) } }