diff options
Diffstat (limited to 'src/plugins/Lbry.cpp')
-rw-r--r-- | src/plugins/Lbry.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/plugins/Lbry.cpp b/src/plugins/Lbry.cpp index 50da718..73c37ba 100644 --- a/src/plugins/Lbry.cpp +++ b/src/plugins/Lbry.cpp @@ -247,11 +247,11 @@ namespace QuickMedia { return resolve_claims(this, request_json, result_items); } - PluginResult LbrySearchPage::submit(const std::string &title, const std::string &url, std::vector<Tab> &result_tabs) { - if(submit_body_item->userdata == search_type_video) - result_tabs.push_back(Tab{ nullptr, std::make_unique<LbryVideoPage>(program, title, url), nullptr }); - else if(submit_body_item->userdata == search_type_channel) - result_tabs.push_back(Tab{ create_body(false, true), std::make_unique<LbryChannelPage>(program, title, url), create_search_bar("Search...", 500) }); + PluginResult LbrySearchPage::submit(const SubmitArgs &args, std::vector<Tab> &result_tabs) { + if(args.userdata == search_type_video) + result_tabs.push_back(Tab{ nullptr, std::make_unique<LbryVideoPage>(program, args.title, args.url), nullptr }); + else if(args.userdata == search_type_channel) + result_tabs.push_back(Tab{ create_body(false, true), std::make_unique<LbryChannelPage>(program, args.title, args.url), create_search_bar("Search...", 500) }); return PluginResult::OK; } @@ -318,8 +318,8 @@ namespace QuickMedia { return resolve_claims(this, request_json, result_items); } - PluginResult LbryChannelPage::submit(const std::string &title, const std::string &url, std::vector<Tab> &result_tabs) { - result_tabs.push_back(Tab{ nullptr, std::make_unique<LbryVideoPage>(program, title, url), nullptr }); + PluginResult LbryChannelPage::submit(const SubmitArgs &args, std::vector<Tab> &result_tabs) { + result_tabs.push_back(Tab{ nullptr, std::make_unique<LbryVideoPage>(program, args.title, args.url), nullptr }); return PluginResult::OK; } |