From aab778b4f4cca2aeda13824ceb377edfc8ae923c Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 28 Sep 2023 01:16:49 +0200 Subject: Youtube search: only reload on page change if local recommendations --- src/plugins/Youtube.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/plugins') diff --git a/src/plugins/Youtube.cpp b/src/plugins/Youtube.cpp index 7248348..f3226de 100644 --- a/src/plugins/Youtube.cpp +++ b/src/plugins/Youtube.cpp @@ -1168,6 +1168,10 @@ namespace QuickMedia { return PluginResult::OK; } + bool YoutubeSearchPage::reload_on_page_change() { + return get_config().youtube.invidious_instance.empty(); + } + static void search_page_search_get_continuation(const Json::Value &json_item, std::string &new_continuation_token, std::unordered_set &added_videos, BodyItems &result_items) { if(!json_item.isObject()) return; -- cgit v1.2.3