Fix Bangumi search including novels (mihonapp/mihon#1885)

(cherry picked from commit 953c4e7bc056ed8b9eebe1b111677a4616c4d694)
This commit is contained in:
MajorTanya 2025-03-20 17:02:55 +01:00 committed by Cuong-Tran
parent 9a332a5404
commit 61d893d5de
No known key found for this signature in database
GPG key ID: 733AA7624B9315C2
3 changed files with 4 additions and 0 deletions

View file

@ -11,6 +11,8 @@ The format is a modified version of [Keep a Changelog](https://keepachangelog.co
- `Other` - for technical stuff. - `Other` - for technical stuff.
## [Unreleased] ## [Unreleased]
### Fixes
- Fix Bangumi search results including novels ([@MajorTanya](https://github.com/MajorTanya)) ([#1885](https://github.com/mihonapp/mihon/pull/1885))
## [v0.18.0] - 2025-03-20 ## [v0.18.0] - 2025-03-20
### Added ### Added

View file

@ -108,6 +108,7 @@ class BangumiApi(
.awaitSuccess() .awaitSuccess()
.parseAs<BGMSearchResult>() .parseAs<BGMSearchResult>()
.data .data
.filter { it.platform == null || it.platform == "漫画" }
.map { it.toTrackSearch(trackId) } .map { it.toTrackSearch(trackId) }
} }
} }

View file

@ -25,6 +25,7 @@ data class BGMSubject(
val volumes: Long = 0, val volumes: Long = 0,
val eps: Long = 0, val eps: Long = 0,
val rating: BGMSubjectRating?, val rating: BGMSubjectRating?,
val platform: String?,
// SY --> // SY -->
val infobox: List<Infobox>, val infobox: List<Infobox>,
// SY <-- // SY <--