Skip to content

Commit

Permalink
Merge pull request #65 from Stremio/fix/video-params-size
Browse files Browse the repository at this point in the history
Fix/VideoParams size filed to u64 (breaking)
  • Loading branch information
elpiel authored Nov 15, 2024
2 parents 61d18e6 + e4fe339 commit c2b5db9
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion stremio-core-kotlin/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "stremio-core-kotlin"
version = "1.3.1"
version = "1.4.0"
authors = ["Smart Code OOD"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion stremio-core-kotlin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ allprojects {

```gradle
dependencies {
implementation 'com.github.Stremio:stremio-core-kotlin:1.3.1'
implementation 'com.github.Stremio:stremio-core-kotlin:1.4.0'
}
```
2 changes: 1 addition & 1 deletion stremio-core-kotlin/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import com.google.protobuf.gradle.*

group = "com.github.Stremio"
version = "1.3.1"
version = "1.4.0"

allprojects {
repositories {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ message Player {

message VideoParams {
optional string hash = 1;
optional int64 size = 2;
optional uint64 size = 2;
optional string filename = 3;
}
message StreamState {
Expand Down
2 changes: 1 addition & 1 deletion stremio-core-protobuf/src/bridge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ mod stream;
mod string;
mod subtitle;

pub trait ToProtobuf<T, A> {
pub trait ToProtobuf<T, A = ()> {
fn to_protobuf<E: Env + 'static>(&self, args: &A) -> T;
}

Expand Down
4 changes: 2 additions & 2 deletions stremio-core-protobuf/src/model/fields/player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ impl FromProtobuf<VideoParams> for models::player::VideoParams {
fn from_protobuf(&self) -> VideoParams {
VideoParams {
hash: self.hash.to_owned(),
size: self.size.map(|x| x as u64).to_owned(),
size: self.size.to_owned(),
filename: self.filename.to_owned(),
}
}
Expand All @@ -67,7 +67,7 @@ impl ToProtobuf<models::player::VideoParams, ()> for VideoParams {
) -> models::player::VideoParams {
models::player::VideoParams {
hash: self.hash.to_owned(),
size: self.size.map(|x| x as i64).to_owned(),
size: self.size.to_owned(),
filename: self.filename.to_owned(),
}
}
Expand Down

0 comments on commit c2b5db9

Please sign in to comment.