fix mangasee deeplink (#14732)

Co-authored-by: scb261 <65343233+scb261@users.noreply.github.com>

Co-authored-by: scb261 <65343233+scb261@users.noreply.github.com>
This commit is contained in:
mobi2002 2022-12-31 02:17:30 +05:00 committed by GitHub
parent cff9ced830
commit 37e0751759
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -24,11 +24,11 @@ class MangaSee : NepNep("MangaSee", "https://mangasee123.com", "en") {
override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable<MangasPage> {
if (query.startsWith("id:")) {
val id = query.substringAfter("id:")
return client.newCall(GET("$baseUrl/manga/$id/"))
return client.newCall(GET("$baseUrl/manga/$id"))
.asObservableSuccess()
.map { response ->
val manga = mangaDetailsParse(response)
manga.url = "/manga/$id/"
manga.url = "/manga/$id"
MangasPage(listOf(manga), false)
}
}

View File

@ -12,7 +12,7 @@ class NepNepGenerator : ThemeSourceGenerator {
override val baseVersionCode: Int = 11
override val sources = listOf(
SingleLang("MangaSee", "https://mangasee123.com", "en", overrideVersionCode = 23),
SingleLang("MangaSee", "https://mangasee123.com", "en", overrideVersionCode = 24),
SingleLang("MangaLife", "https://manga4life.com", "en", overrideVersionCode = 16),
)