aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Plugin.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/Plugin.hpp b/plugins/Plugin.hpp
index 2cc08cc..438b4ea 100644
--- a/plugins/Plugin.hpp
+++ b/plugins/Plugin.hpp
@@ -88,5 +88,10 @@ namespace QuickMedia {
bool use_tor = false;
protected:
std::string url_param_encode(const std::string &param) const;
+ DownloadResult download_json(Json::Value &result, const std::string &url, std::vector<CommandArg> additional_args, bool use_browser_useragent = false, std::string *err_msg = nullptr) const;
+ SuggestionResult download_result_to_suggestion_result(DownloadResult download_result) const { return (SuggestionResult)download_result; }
+ PluginResult download_result_to_plugin_result(DownloadResult download_result) const { return (PluginResult)download_result; }
+ SearchResult download_result_to_search_result(DownloadResult download_result) const { return (SearchResult)download_result; }
+ ImageResult download_result_to_image_result(DownloadResult download_result) const { return (ImageResult)download_result; }
};
} \ No newline at end of file