Skip to content

Commit

Permalink
fix: PR review comment for field name
Browse files Browse the repository at this point in the history
Signed-off-by: Lachezar Lechev <[email protected]>
  • Loading branch information
elpiel committed Dec 4, 2023
1 parent 6c69e77 commit 07a32c5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/models/player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1003,7 +1003,7 @@ fn seek_update<E: Env + 'static>(
video_params.hash.clone(),
) {
(StreamSource::Torrent { .. }, Some(stream_name), Some(opensubtitles_hash)) => {
let filename_hash = {
let stream_name_hash = {
use sha2::Digest;
let mut sha256 = sha2::Sha256::new();
sha256.update(stream_name);
Expand All @@ -1016,7 +1016,7 @@ fn seek_update<E: Env + 'static>(
opensubtitles_hash,
item_id: library_item.id.to_owned(),
series_info: series_info.to_owned(),
filename_hash,
stream_name_hash,
duration: library_item.state.duration,
seek_history: seek_history.to_owned(),
skip_outro: outro.map(|time| vec![time]).unwrap_or_default(),
Expand Down
6 changes: 3 additions & 3 deletions src/types/api/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ pub struct SeekLogRequest {
pub item_id: String,
#[serde(flatten)]
pub series_info: SeriesInfo,
/// Filename hash
/// Stream name hash
///
/// base64 encoded SHA-256 hash of the Stream filename.
/// base64 encoded SHA-256 hash of the Stream file name.
#[serde(rename = "stHash")]
pub filename_hash: String,
pub stream_name_hash: String,
pub duration: u64,
pub seek_history: Vec<SeekLog>,
/// The time (in milliseconds) when the user decided to play the next video/episode
Expand Down

0 comments on commit 07a32c5

Please sign in to comment.