diff --git a/src/commonMain/rust/bridge/action.rs b/src/commonMain/rust/bridge/action.rs index 7655158..42a7514 100644 --- a/src/commonMain/rust/bridge/action.rs +++ b/src/commonMain/rust/bridge/action.rs @@ -2,8 +2,8 @@ use std::ops::Range; use stremio_core::runtime::msg::{ Action, ActionCatalogWithFilters, ActionCatalogsWithExtra, ActionCtx, ActionLibraryByType, - ActionLink, ActionLoad, ActionMetaDetails, ActionPlayer, ActionStreamingServer, - CreateTorrentArgs, PlayOnDeviceArgs, + ActionLibraryWithFilters, ActionLink, ActionLoad, ActionMetaDetails, ActionPlayer, + ActionStreamingServer, CreateTorrentArgs, PlayOnDeviceArgs, }; use stremio_core::runtime::RuntimeAction; @@ -13,8 +13,8 @@ use crate::model::AndroidModel; use crate::protobuf::stremio::core::runtime; use crate::protobuf::stremio::core::runtime::{ action_catalog_with_filters, action_catalogs_with_extra, action_ctx, action_library_by_type, - action_link, action_load, action_meta_details, action_player, action_streaming_server, - create_torrent_args, Field, + action_library_with_filters, action_link, action_load, action_meta_details, action_player, + action_streaming_server, create_torrent_args, Field, }; impl FromProtobuf for runtime::Action { @@ -114,6 +114,14 @@ impl FromProtobuf for runtime::Action { None => unimplemented!("ActionCatalogsWithExtra missing"), } } + Some(runtime::action::Type::LibraryWithFilters(action_library_with_filters)) => { + match &action_library_with_filters.args { + Some(action_library_with_filters::Args::LoadNextPage(_args)) => { + Action::LibraryWithFilters(ActionLibraryWithFilters::LoadNextPage) + } + None => unimplemented!("ActionLibraryWithFilters missing"), + } + } Some(runtime::action::Type::LibraryByType(action_library_by_type)) => { match &action_library_by_type.args { Some(action_library_by_type::Args::LoadNextPage(index)) => { diff --git a/src/main/proto/stremio/core/runtime/action.proto b/src/main/proto/stremio/core/runtime/action.proto index 85b7fd9..b785a7b 100644 --- a/src/main/proto/stremio/core/runtime/action.proto +++ b/src/main/proto/stremio/core/runtime/action.proto @@ -6,6 +6,7 @@ option java_package = "com.stremio.core.runtime.msg"; import "stremio/core/runtime/action_catalogs_with_extra.proto"; import "stremio/core/runtime/action_catalog_with_filters.proto"; +import "stremio/core/runtime/action_library_with_filters.proto"; import "stremio/core/runtime/action_library_by_type.proto"; import "stremio/core/runtime/action_ctx.proto"; import "stremio/core/runtime/action_link.proto"; @@ -26,12 +27,13 @@ message Action { ActionLink link = 2; ActionCatalogWithFilters catalog_with_filters = 3; ActionCatalogsWithExtra catalogs_with_extra = 4; - ActionLibraryByType library_by_type = 5; - ActionMetaDetails meta_details = 6; - ActionStreamingServer streaming_server = 7; - ActionPlayer player = 8; - ActionLoad load = 9; - ActionUnload unload = 10; + ActionLibraryWithFilters library_with_filters = 5; + ActionLibraryByType library_by_type = 6; + ActionMetaDetails meta_details = 7; + ActionStreamingServer streaming_server = 8; + ActionPlayer player = 9; + ActionLoad load = 10; + ActionUnload unload = 11; } message ActionUnload { diff --git a/src/main/proto/stremio/core/runtime/action_library_with_filters.proto b/src/main/proto/stremio/core/runtime/action_library_with_filters.proto new file mode 100644 index 0000000..3e4d057 --- /dev/null +++ b/src/main/proto/stremio/core/runtime/action_library_with_filters.proto @@ -0,0 +1,13 @@ +syntax = "proto2"; + +package stremio.core.runtime; + +option java_package = "com.stremio.core.runtime.msg"; + +import "google/protobuf/empty.proto"; + +message ActionLibraryWithFilters { + oneof args { + google.protobuf.Empty load_next_page = 1; + } +} \ No newline at end of file