From 4140d7a30121aca34093afe5f52da9c08951f508 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 17 Feb 2022 19:21:51 +0100 Subject: local-anime: remove bookmarking for now --- plugins/LocalAnime.hpp | 2 -- src/plugins/LocalAnime.cpp | 11 ----------- 2 files changed, 13 deletions(-) diff --git a/plugins/LocalAnime.hpp b/plugins/LocalAnime.hpp index e768da9..4c3efaa 100644 --- a/plugins/LocalAnime.hpp +++ b/plugins/LocalAnime.hpp @@ -49,10 +49,8 @@ namespace QuickMedia { 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; private: Path directory; diff --git a/src/plugins/LocalAnime.cpp b/src/plugins/LocalAnime.cpp index 9b1205a..b78772d 100644 --- a/src/plugins/LocalAnime.cpp +++ b/src/plugins/LocalAnime.cpp @@ -327,17 +327,6 @@ namespace QuickMedia { return PluginResult::OK; } - std::shared_ptr LocalAnimeSearchPage::get_bookmark_body_item(BodyItem *selected_item) { - if(!selected_item) - return nullptr; - - std::string filename_relative_to_anime_dir = selected_item->url.substr(get_config().local_anime.directory.size() + 1); - auto body_item = BodyItem::create(filename_relative_to_anime_dir); - body_item->url = filename_relative_to_anime_dir; - body_item->thumbnail_url = selected_item->thumbnail_url; - return body_item; - } - void LocalAnimeSearchPage::toggle_read(BodyItem *selected_item) { if(!selected_item) return; -- cgit v1.2.3