Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add mark season as watched meta details action #75

Merged
merged 1 commit into from
Mar 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,16 @@ message ActionMetaDetails {
oneof args {
bool mark_as_watched = 1;
VideoState mark_video_as_watched = 2;
MarkSeasonAsWatchedArgs mark_season_as_watched = 3;
}

message VideoState {
required stremio.core.types.Video video = 1;
required bool is_watched = 2;
}

message MarkSeasonAsWatchedArgs {
required uint32 season = 1;
required bool watched = 2;
}
}
6 changes: 6 additions & 0 deletions stremio-core-protobuf/src/bridge/action.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,12 @@ impl FromProtobuf<Action> for runtime::Action {
video_state.is_watched,
))
}
Some(action_meta_details::Args::MarkSeasonAsWatched(args)) => {
Action::MetaDetails(ActionMetaDetails::MarkSeasonAsWatched(
args.season,
args.watched,
))
}
None => unimplemented!("ActionMetaDetails missing"),
}
}
Expand Down