mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-07-31 00:29:22 +00:00
Merge pull request #1360 from danielz1z/fix/catalogroute-targetkind-navtype
fix(ios): serialize catalog route target kind
This commit is contained in:
commit
cb48f1850c
1 changed files with 3 additions and 3 deletions
|
|
@ -305,7 +305,7 @@ data class StreamRoute(
|
|||
data class CatalogRoute(
|
||||
val title: String,
|
||||
val subtitle: String,
|
||||
val targetKind: CatalogTargetKind,
|
||||
val targetKind: String,
|
||||
val contentType: String,
|
||||
val supportsPagination: Boolean = false,
|
||||
val manifestUrl: String? = null,
|
||||
|
|
@ -327,7 +327,7 @@ data class CatalogRoute(
|
|||
is CatalogTarget.Addon -> CatalogTargetKind.ADDON
|
||||
is CatalogTarget.Library -> CatalogTargetKind.LIBRARY
|
||||
is CatalogTarget.CollectionSource -> CatalogTargetKind.COLLECTION_SOURCE
|
||||
},
|
||||
}.name,
|
||||
contentType = target.contentType,
|
||||
supportsPagination = target.supportsPagination,
|
||||
manifestUrl = (target as? CatalogTarget.Addon)?.manifestUrl,
|
||||
|
|
@ -340,7 +340,7 @@ data class CatalogRoute(
|
|||
)
|
||||
|
||||
fun toCatalogTarget(): CatalogTarget =
|
||||
when (targetKind) {
|
||||
when (CatalogTargetKind.valueOf(targetKind)) {
|
||||
CatalogTargetKind.ADDON -> CatalogTarget.Addon(
|
||||
manifestUrl = requireNotNull(manifestUrl),
|
||||
contentType = contentType,
|
||||
|
|
|
|||
Loading…
Reference in a new issue