From 62a29abd372a39a413e43a8f75146af823fe7bb3 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 4 Aug 2019 14:58:03 +0200 Subject: Add video seek, play next video on end file --- plugins/Plugin.hpp | 1 + plugins/Youtube.hpp | 1 + 2 files changed, 2 insertions(+) (limited to 'plugins') 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> &result_items) = 0; virtual SuggestionResult update_search_suggestions(const std::string &text, std::vector> &result_items); + virtual std::vector> get_related_media(const std::string &url); protected: DownloadResult download_to_string(const std::string &url, std::string &result, const std::vector &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> &result_items) override; SuggestionResult update_search_suggestions(const std::string &text, std::vector> &result_items) override; + std::vector> get_related_media(const std::string &url) override; }; } \ No newline at end of file -- cgit v1.2.3