HattoriManga: Fix deep linking (#3147)

Fix deep linking
This commit is contained in:
Chopper 2024-05-20 07:56:18 -03:00 committed by Draff
parent f4d1f0d244
commit ceb953ff96
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
ext { ext {
extName = 'Hattori Manga' extName = 'Hattori Manga'
extClass = '.HattoriManga' extClass = '.HattoriManga'
extVersionCode = 37 extVersionCode = 38
isNsfw = true isNsfw = true
} }

View File

@ -207,7 +207,7 @@ class HattoriManga : HttpSource() {
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(SEARCH_PREFIX)) { if (query.startsWith(SEARCH_PREFIX)) {
val slug = query.removePrefix(SEARCH_PREFIX) val slug = query.removePrefix(SEARCH_PREFIX)
return client.newCall(GET("$baseUrl/$slug", headers)) return client.newCall(GET("$baseUrl/manga/$slug", headers))
.asObservableSuccess() .asObservableSuccess()
.map { .map {
MangasPage(listOf(mangaDetailsParse(it)), false) MangasPage(listOf(mangaDetailsParse(it)), false)