diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-08-04 14:58:03 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2019-08-04 14:58:06 +0200 |
commit | 62a29abd372a39a413e43a8f75146af823fe7bb3 (patch) | |
tree | 71562dcbba424c874da003f7521a0b852563ede5 /plugins | |
parent | 4b24638802385816fb5f90c95f175b30ae2398a8 (diff) |
Add video seek, play next video on end file
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Plugin.hpp | 1 | ||||
-rw-r--r-- | plugins/Youtube.hpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/plugins/Plugin.hpp b/plugins/Plugin.hpp index dd50998..09ce09a 100644 --- a/plugins/Plugin.hpp +++ b/plugins/Plugin.hpp @@ -46,6 +46,7 @@ namespace QuickMedia { virtual SearchResult search(const std::string &text, std::vector<std::unique_ptr<BodyItem>> &result_items) = 0; virtual SuggestionResult update_search_suggestions(const std::string &text, std::vector<std::unique_ptr<BodyItem>> &result_items); + virtual std::vector<std::unique_ptr<BodyItem>> get_related_media(const std::string &url); protected: DownloadResult download_to_string(const std::string &url, std::string &result, const std::vector<CommandArg> &additional_args = {}); std::string url_param_encode(const std::string ¶m) const; diff --git a/plugins/Youtube.hpp b/plugins/Youtube.hpp index 073cb0c..eda8a1f 100644 --- a/plugins/Youtube.hpp +++ b/plugins/Youtube.hpp @@ -7,5 +7,6 @@ namespace QuickMedia { public: SearchResult search(const std::string &text, std::vector<std::unique_ptr<BodyItem>> &result_items) override; 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; }; }
\ No newline at end of file |