Missing alt titles
This commit is contained in:
parent
fc0ae7bedd
commit
7c2ab47c98
@ -12,6 +12,7 @@ data class ContentExport(
|
||||
data class MetadataExport(
|
||||
// Vi tar ikke med collection fra metadata, da det bestemmes i Migrate
|
||||
val title: String,
|
||||
val alternativeTitles: List<String> = emptyList(),
|
||||
val genres: List<String> = emptyList(),
|
||||
val cover: String? = null,
|
||||
val summary: List<MetadataSearchResultEvent.SearchResult.MetadataResult.Summary> = emptyList(),
|
||||
|
||||
@ -122,6 +122,7 @@ class CollectProjection(val events: List<Event>) {
|
||||
val result = metadataEvent.recommended ?: return null
|
||||
return MetadataProjection(
|
||||
title = result.metadata.title,
|
||||
alternativeTitles = result.metadata.alternateTitles,
|
||||
summary = result.metadata.summary,
|
||||
mediaType = result.metadata.type,
|
||||
genres = result.metadata.genres,
|
||||
@ -179,6 +180,7 @@ class CollectProjection(val events: List<Event>) {
|
||||
|
||||
data class MetadataProjection(
|
||||
val title: String,
|
||||
val alternativeTitles: List<String> = emptyList(),
|
||||
val summary: List<MetadataSearchResultEvent.SearchResult.MetadataResult.Summary>,
|
||||
val mediaType: MediaType,
|
||||
val genres: List<String>,
|
||||
|
||||
@ -23,6 +23,7 @@ class StoreProjection(val events: List<Event>) {
|
||||
|
||||
return ContentExport.MetadataExport(
|
||||
title = metadata.title,
|
||||
alternativeTitles = metadata.alternativeTitles,
|
||||
genres = metadata.genres,
|
||||
cover = useCover,
|
||||
summary = metadata.summary,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user