mirror of
https://github.com/FluxaMedia/fluxa.git
synced 2026-08-05 08:18:41 +00:00
Diagnosed against NuvioMobile's open-source discover implementation (same addons, more catalogs visible there). Two real gaps: 1. buildDiscoverCatalogOptions() excluded any catalog requiring an extra parameter beyond genre. Nuvio's equivalent (supportsDiscover()) explicitly whitelists "skip" (pagination) as never blocking a catalog even when required — Fluxa's filter didn't, silently dropping every catalog that declares skip as required, which is a common Stremio addon SDK convention. Added "skip" to the allowed set. 2. The Type filter (movie/series) was hardcoded in the shared Discover UI instead of derived from what addons actually expose. Nuvio builds its type list from distinct catalog types across installed addons, which is why "anime" shows up there. Added a new buildDiscoverContentTypes() helper (same extras filter, minus the "all"/type restriction), threaded contentTypes through the readDiscoverCatalogFilters effect, Rust's DiscoverState (new field, needed since the effect completion flows back through the engine's own state, not directly to Kotlin), HomeViewModel, and the shared DiscoverUiState/DiscoverScreen, with a movie/series fallback so the dropdown isn't empty before the first fetch completes. |
||
|---|---|---|
| .. | ||
| src | ||
| build.gradle.kts | ||