diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-02-16 21:54:47 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-02-17 19:18:34 +0100 |
commit | d4cd63129ae5dff8fd69525424e0f8cb9ae1a905 (patch) | |
tree | 957c957f0ca1796105318b7595545dcfc7e04af7 /plugins | |
parent | 5061e1ad912bccf89df25258e7dd8b386b0a7239 (diff) |
Wip: fix video duration not working for some analyzed files, get frame in middle of video instead of first frame for thumbnail
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/LocalAnime.hpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/plugins/LocalAnime.hpp b/plugins/LocalAnime.hpp new file mode 100644 index 0000000..cd240d3 --- /dev/null +++ b/plugins/LocalAnime.hpp @@ -0,0 +1,21 @@ +#pragma once + +#include "Page.hpp" + +// TODO: Progress > 90% = fully watched (because ending might have been skipped) + +namespace QuickMedia { + class LocalAnimeSearchPage : public LazyFetchPage { + public: + LocalAnimeSearchPage(Program *program) : LazyFetchPage(program) {} + const char* get_title() const override { return "Search"; } + bool search_is_filter() override { return true; } + PluginResult submit(const SubmitArgs &args, std::vector<Tab> &result_tabs) override; + PluginResult lazy_fetch(BodyItems &result_items) override; + const char* get_bookmark_name() const override { return "local-anime"; } + bool reload_on_page_change() override { return true; } + bool reseek_to_body_item_by_url() override { return true; } + std::shared_ptr<BodyItem> get_bookmark_body_item(BodyItem *selected_item) override; + void toggle_read(BodyItem *selected_item) override; + }; +}
\ No newline at end of file |