mirror of
https://github.com/mihonapp/mihon.git
synced 2026-10-16 13:48:09 -07:00
Fix Kitsu showing novels in search results (#4069)
This commit is contained in:
@@ -33,6 +33,7 @@ The format is a modified version of [Keep a Changelog](https://keepachangelog.co
|
||||
- Fixed AniList rate limit ([@MajorTanya](https://github.com/MajorTanya)) ([#3942](https://github.com/mihonapp/mihon/pull/3942))
|
||||
- Fixed library search when clicking source name in manga info screen ([@choppeh](https://github.com/choppeh)) ([#4002](https://github.com/mihonapp/mihon/pull/4002))
|
||||
- Fixed entries being incorrectly marked as duplicates when tracked with some trackers ([@Secozzi](https://github.com/Secozzi)) ([#4008](https://github.com/mihonapp/mihon/pull/4008))
|
||||
- Fixed Kitsu search showing novel results ([@MajorTanya](https://github.com/MajorTanya)) ([#4069](https://github.com/mihonapp/mihon/pull/4069))
|
||||
|
||||
## [v0.20.4] - 2026-08-05
|
||||
### Fixed
|
||||
|
||||
@@ -23,6 +23,7 @@ import mihon.graphql.kitsu.KitsuGetMangaDetailsByIdQuery
|
||||
import mihon.graphql.kitsu.KitsuGetMangaDetailsBySlugQuery
|
||||
import mihon.graphql.kitsu.KitsuSearchMangaByTitleQuery
|
||||
import mihon.graphql.kitsu.KitsuUpdateLibMangaMutation
|
||||
import mihon.graphql.kitsu.type.MangaSubtypeEnum
|
||||
import okhttp3.FormBody
|
||||
import okhttp3.OkHttpClient
|
||||
import okhttp3.RequestBody
|
||||
@@ -159,6 +160,7 @@ class KitsuApi(
|
||||
default = { emptyList() },
|
||||
) {
|
||||
it.searchMangaByTitle.nodes
|
||||
?.filterNot { node -> node?.mangaFragment?.subtype == MangaSubtypeEnum.NOVEL }
|
||||
?.mapNotNull { node -> node?.toTrackSearch(trackerId) }
|
||||
}
|
||||
?: emptyList()
|
||||
|
||||
Reference in New Issue
Block a user