fix Madara deeplink entry not being marked as in library (#8369)

This commit is contained in:
AwkwardPeak7 2025-04-06 15:11:51 +05:00 committed by Draff
parent 68c6a5a6af
commit e91a361ad8
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 3 additions and 1 deletions

View File

@ -2,7 +2,7 @@ plugins {
id("lib-multisrc") id("lib-multisrc")
} }
baseVersionCode = 41 baseVersionCode = 42
dependencies { dependencies {
api(project(":lib:cryptoaes")) api(project(":lib:cryptoaes"))

View File

@ -245,11 +245,13 @@ abstract class Madara(
val mangaUrl = baseUrl.toHttpUrl().newBuilder().apply { val mangaUrl = baseUrl.toHttpUrl().newBuilder().apply {
addPathSegment(mangaSubString) addPathSegment(mangaSubString)
addPathSegment(query.substringAfter(URL_SEARCH_PREFIX)) addPathSegment(query.substringAfter(URL_SEARCH_PREFIX))
addPathSegment("") // add trailing slash
}.build() }.build()
return client.newCall(GET(mangaUrl, headers)) return client.newCall(GET(mangaUrl, headers))
.asObservableSuccess().map { response -> .asObservableSuccess().map { response ->
val manga = mangaDetailsParse(response).apply { val manga = mangaDetailsParse(response).apply {
setUrlWithoutDomain(mangaUrl.toString()) setUrlWithoutDomain(mangaUrl.toString())
initialized = true
} }
MangasPage(listOf(manga), false) MangasPage(listOf(manga), false)