From 07a32c5f0f7a2920f1b8432d5b5536a422050af2 Mon Sep 17 00:00:00 2001 From: Lachezar Lechev Date: Mon, 4 Dec 2023 09:53:46 +0200 Subject: [PATCH] fix: PR review comment for field name Signed-off-by: Lachezar Lechev --- src/models/player.rs | 4 ++-- src/types/api/request.rs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/models/player.rs b/src/models/player.rs index d1ada6828..79667d499 100644 --- a/src/models/player.rs +++ b/src/models/player.rs @@ -1003,7 +1003,7 @@ fn seek_update( 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); @@ -1016,7 +1016,7 @@ fn seek_update( 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(), diff --git a/src/types/api/request.rs b/src/types/api/request.rs index 53fc6317e..bdd250b69 100644 --- a/src/types/api/request.rs +++ b/src/types/api/request.rs @@ -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, /// The time (in milliseconds) when the user decided to play the next video/episode