aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Plugin.hpp1
-rw-r--r--plugins/Youtube.hpp1
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 &param) 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