diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-08-09 03:35:56 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2019-08-09 03:36:07 +0200 |
commit | 73b077835dc6085c2642451fa7dbde629b9eadfc (patch) | |
tree | d6abfaae58f9ee918fda556b36a8078825cb2799 /plugins/Youtube.hpp | |
parent | e061971e5f1dee5a6e1541bc88a192e9ca8e9422 (diff) |
Readd video seek, make search asynchronous
Diffstat (limited to 'plugins/Youtube.hpp')
-rw-r--r-- | plugins/Youtube.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Youtube.hpp b/plugins/Youtube.hpp index 64a0d6b..f459630 100644 --- a/plugins/Youtube.hpp +++ b/plugins/Youtube.hpp @@ -5,11 +5,11 @@ namespace QuickMedia { class Youtube : public Plugin { public: - SuggestionResult update_search_suggestions(const std::string &text, std::vector<std::unique_ptr<BodyItem>> &result_items) override; - std::vector<std::unique_ptr<BodyItem>> get_related_media(const std::string &url) override; + SuggestionResult update_search_suggestions(const std::string &text, BodyItems &result_items) override; + BodyItems get_related_media(const std::string &url) override; bool search_suggestions_has_thumbnails() const override { return true; } bool search_results_has_thumbnails() const override { return false; } - int get_search_delay() const override { return 250; } + int get_search_delay() const override { return 150; } bool search_suggestion_is_search() const override { return true; } Page get_page_after_search() const override { return Page::VIDEO_CONTENT; } }; |