Madara: fix redirects on manga from deeplink (#1731)

This commit is contained in:
AwkwardPeak7 2024-03-08 14:57:58 +05:00 committed by Draff
parent 757b067214
commit 1cd1935eeb
1 changed files with 1 additions and 1 deletions

View File

@ -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 {