Fix Bangumi search including novels (mihonapp/mihon#1885)
(cherry picked from commit 953c4e7bc056ed8b9eebe1b111677a4616c4d694)
This commit is contained in:
parent
9a332a5404
commit
61d893d5de
3 changed files with 4 additions and 0 deletions
|
|
@ -11,6 +11,8 @@ The format is a modified version of [Keep a Changelog](https://keepachangelog.co
|
|||
- `Other` - for technical stuff.
|
||||
|
||||
## [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
|
||||
### Added
|
||||
|
|
|
|||
|
|
@ -108,6 +108,7 @@ class BangumiApi(
|
|||
.awaitSuccess()
|
||||
.parseAs<BGMSearchResult>()
|
||||
.data
|
||||
.filter { it.platform == null || it.platform == "漫画" }
|
||||
.map { it.toTrackSearch(trackId) }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ data class BGMSubject(
|
|||
val volumes: Long = 0,
|
||||
val eps: Long = 0,
|
||||
val rating: BGMSubjectRating?,
|
||||
val platform: String?,
|
||||
// SY -->
|
||||
val infobox: List<Infobox>,
|
||||
// SY <--
|
||||
|
|
|
|||
Loading…
Reference in a new issue