Madara: fix redirects on manga from deeplink (#1731)
This commit is contained in:
parent
757b067214
commit
1cd1935eeb
|
@ -237,7 +237,7 @@ abstract class Madara(
|
||||||
|
|
||||||
override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable<MangasPage> {
|
override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable<MangasPage> {
|
||||||
if (query.startsWith(URL_SEARCH_PREFIX)) {
|
if (query.startsWith(URL_SEARCH_PREFIX)) {
|
||||||
val mangaUrl = "/$mangaSubString/${query.substringAfter(URL_SEARCH_PREFIX)}"
|
val mangaUrl = "/$mangaSubString/${query.substringAfter(URL_SEARCH_PREFIX)}/"
|
||||||
return client.newCall(GET("$baseUrl$mangaUrl", headers))
|
return client.newCall(GET("$baseUrl$mangaUrl", headers))
|
||||||
.asObservableSuccess().map { response ->
|
.asObservableSuccess().map { response ->
|
||||||
val manga = mangaDetailsParse(response).apply {
|
val manga = mangaDetailsParse(response).apply {
|
||||||
|
|
Loading…
Reference in New Issue