diff options
author | dec05eba <dec05eba@protonmail.com> | 2023-01-19 23:47:37 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2023-01-19 23:47:37 +0100 |
commit | 760d903fe7c7c56a6408accff0daa47c2e743eed (patch) | |
tree | dcd3f9aeb64f168c2a63afeba8c170e61e588618 /plugins | |
parent | 4abcb3755bb222f91ccbf7b65f6da181cfd4d319 (diff) |
Lazy fetch local anime page
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/LocalAnime.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
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<LocalAnimeItem> 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<LocalAnimeItem> anime_items; + bool fetch_home_page = false; }; class LocalAnimeVideoPage : public VideoPage { |