mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-11-06 02:40:58 +01:00
Discover movies & tv shows by genre (#1610)
## Description Adds genre rows for movies & TV shows to the discover page. These work the same as on the Seerr web UI, clicking one will show media in the genre. ### Related issues Related to https://github.com/damontecres/Wholphin/issues/702 ### Testing Just on the emulator so far ## Screenshots <img width="1280" height="720" alt="discover_genres Large" src="https://github.com/user-attachments/assets/93e5ef25-e253-49bc-9009-89f814889c98" /> ## AI or LLM usage None
This commit is contained in:
parent
c945e1a472
commit
f21b29fe1b
9 changed files with 564 additions and 130 deletions
|
|
@ -92,13 +92,7 @@ data class DiscoverItem(
|
|||
|
||||
val destination: Destination
|
||||
get() {
|
||||
val jfType =
|
||||
when (type) {
|
||||
SeerrItemType.MOVIE -> BaseItemKind.MOVIE
|
||||
SeerrItemType.TV -> BaseItemKind.SERIES
|
||||
SeerrItemType.PERSON -> BaseItemKind.PERSON
|
||||
SeerrItemType.UNKNOWN -> null
|
||||
}
|
||||
val jfType = type.baseItemKind
|
||||
return if (jellyfinItemId != null && jfType != null) {
|
||||
Destination.MediaItem(
|
||||
itemId = jellyfinItemId,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue