Skip to content

Commit

Permalink
rename content.summarization attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
nklhtv committed Mar 29, 2024
1 parent a736c7c commit 43fd328
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/MediaElement.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
$: mediaObject = introOrOutro;
$: !introOrOutro && (mediaObject = activeAdvert);
$: !introOrOutro && !activeAdvert && contentVariant === "article" && (mediaObject = contentItem);
$: !introOrOutro && !activeAdvert && contentVariant === "summary" && (mediaObject = contentItem?.summary);
$: !introOrOutro && !activeAdvert && contentVariant === "summary" && (mediaObject = contentItem?.summarization);
$: sources = orderedMediaSources(mediaObject, preferVideo(), startPosition);
Expand Down
6 changes: 3 additions & 3 deletions src/helpers/setPropsFromApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,14 @@ const setContentProp = (player, data) => {
contentType: video.content_type,
duration: video.duration ? video.duration / 1000 : 0,
})),
summary: {
audio: (item.summary?.audio || []).map((audio) => ({
summarization: {
audio: (item.summarization?.audio || []).map((audio) => ({
id: audio.id,
url: audio.url,
contentType: audio.content_type,
duration: audio.duration ? audio.duration / 1000 : 0,
})) ?? [],
video: (item.summary?.video || []).map((video) => ({
video: (item.summarization?.video || []).map((video) => ({
id: video.id,
url: video.url,
contentType: video.content_type,
Expand Down

0 comments on commit 43fd328

Please sign in to comment.