From 760d903fe7c7c56a6408accff0daa47c2e743eed Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 19 Jan 2023 23:47:37 +0100 Subject: Lazy fetch local anime page --- plugins/LocalAnime.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins') diff --git a/plugins/LocalAnime.hpp b/plugins/LocalAnime.hpp index 4d51e24..6edf1c8 100644 --- a/plugins/LocalAnime.hpp +++ b/plugins/LocalAnime.hpp @@ -32,6 +32,8 @@ namespace QuickMedia { class LocalAnimeSearchPage : public LazyFetchPage { public: + LocalAnimeSearchPage(Program *program) + : LazyFetchPage(program), parent_search_page(nullptr), fetch_home_page(true) {} LocalAnimeSearchPage(Program *program, std::vector anime_items, LocalAnimeSearchPage *parent_search_page = nullptr) : LazyFetchPage(program), parent_search_page(parent_search_page), anime_items(std::move(anime_items)) {} const char* get_title() const override { return "Search"; } @@ -44,6 +46,7 @@ namespace QuickMedia { LocalAnimeSearchPage *parent_search_page; private: std::vector anime_items; + bool fetch_home_page = false; }; class LocalAnimeVideoPage : public VideoPage { -- cgit v1.2.3