Skip to content

Commit a1acea0

Browse files
committed
chore: rename to os_hash
1 parent bb57cbc commit a1acea0

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/models/player.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1252,7 +1252,7 @@ fn seek_update<E: Env + 'static>(
12521252
selected.stream.name.as_ref(),
12531253
video_params.hash.clone(),
12541254
) {
1255-
(true, Some(stream_name), Some(opensubtitles_hash)) => {
1255+
(true, Some(stream_name), Some(os_hash)) => {
12561256
let stream_name_hash = {
12571257
use sha2::Digest;
12581258
let mut sha256 = sha2::Sha256::new();
@@ -1263,7 +1263,7 @@ fn seek_update<E: Env + 'static>(
12631263
};
12641264

12651265
let seek_log_req = SeekLogRequest {
1266-
opensubtitles_hash,
1266+
os_hash,
12671267
item_id: library_item.id.to_owned(),
12681268
series_info: series_info.to_owned(),
12691269
stream_name_hash,
@@ -1441,7 +1441,7 @@ fn skip_gaps_update<E: Env + 'static>(
14411441
selected.stream.name.as_ref(),
14421442
video_params.hash.clone(),
14431443
) {
1444-
(true, Some(stream_name), Some(opensubtitles_hash)) => {
1444+
(true, Some(stream_name), Some(os_hash)) => {
14451445
let stream_name_hash = {
14461446
use sha2::Digest;
14471447
let mut sha256 = sha2::Sha256::new();
@@ -1453,7 +1453,7 @@ fn skip_gaps_update<E: Env + 'static>(
14531453

14541454
let skip_gaps_request = SkipGapsRequest {
14551455
auth_key,
1456-
opensubtitles_hash,
1456+
os_hash,
14571457
item_id: library_item.id.to_owned(),
14581458
series_info: series_info.to_owned(),
14591459
stream_name_hash,

src/types/api/request.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ pub struct SeekLog {
113113
pub struct SeekLogRequest {
114114
/// Opensubtitles hash returned by the server
115115
#[serde(rename = "osId")]
116-
pub opensubtitles_hash: String,
116+
pub os_hash: String,
117117
pub item_id: String,
118118
#[serde(flatten)]
119119
pub series_info: SeriesInfo,
@@ -135,7 +135,7 @@ pub struct SkipGapsRequest {
135135
pub auth_key: AuthKey,
136136
/// Opensubtitles hash returned by the server
137137
#[serde(rename = "osId")]
138-
pub opensubtitles_hash: String,
138+
pub os_hash: String,
139139
pub item_id: String,
140140
#[serde(flatten)]
141141
pub series_info: SeriesInfo,

0 commit comments

Comments
 (0)