Skip to content

Commit

Permalink
Merge pull request #95 from Stremio/fix/serialize-player-typo
Browse files Browse the repository at this point in the history
fix(serialize_player): typo
  • Loading branch information
elpiel committed Feb 7, 2024
2 parents 606f777 + ae4d1b8 commit 80898bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/model/serialize_player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ mod model {
pub library_item: Option<LibraryItem<'a>>,
pub stream_state: Option<&'a StreamItemState>,
#[serde(skip_serializing_if = "Option::is_none")]
pub into_outro: Option<&'a stremio_core::types::player::IntroOutro>,
pub intro_outro: Option<&'a stremio_core::types::player::IntroOutro>,
pub title: Option<String>,
pub addon: Option<model::DescriptorPreview<'a>>,
}
Expand Down Expand Up @@ -245,7 +245,7 @@ pub fn serialize_player(player: &Player, ctx: &Ctx, streaming_server: &Streaming
},
}),
stream_state: player.stream_state.as_ref(),
into_outro: player.intro_outro.as_ref(),
intro_outro: player.intro_outro.as_ref(),
title: player.selected.as_ref().and_then(|selected| {
player
.meta_item
Expand Down

0 comments on commit 80898bc

Please sign in to comment.