From d4cd63129ae5dff8fd69525424e0f8cb9ae1a905 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 16 Feb 2022 21:54:47 +0100 Subject: Wip: fix video duration not working for some analyzed files, get frame in middle of video instead of first frame for thumbnail --- plugins/LocalAnime.hpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 plugins/LocalAnime.hpp (limited to 'plugins') 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 &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 get_bookmark_body_item(BodyItem *selected_item) override; + void toggle_read(BodyItem *selected_item) override; + }; +} \ No newline at end of file -- cgit v1.2.3