diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-02-17 19:18:19 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-02-17 19:18:34 +0100 |
commit | 02e029ed40f801e0710b09062069e7083cd30b93 (patch) | |
tree | b3bd567ad0c03074064d62d32a876920aa58fab4 /plugins/Page.hpp | |
parent | d4cd63129ae5dff8fd69525424e0f8cb9ae1a905 (diff) |
Add local anime tracking. Check readme for more info about local_anime config
Diffstat (limited to 'plugins/Page.hpp')
-rw-r--r-- | plugins/Page.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/Page.hpp b/plugins/Page.hpp index 20d6000..2ab19b1 100644 --- a/plugins/Page.hpp +++ b/plugins/Page.hpp @@ -174,6 +174,10 @@ namespace QuickMedia { virtual void mark_watched() {}; // Should not do any network request to not slow down video loading virtual void get_subtitles(SubtitleData &subtitle_data) { (void)subtitle_data; } + + virtual bool is_local() const { return false; } + + virtual void set_watch_progress(double time_pos_sec) { (void)time_pos_sec; } protected: std::string url; }; @@ -187,6 +191,8 @@ namespace QuickMedia { bool reload_on_page_change() override { return true; } const char* get_bookmark_name() const override { return redirect_page->get_bookmark_name(); } bool is_bookmark_page() const override { return true; } + + mgl::vec2i thumbnail_size = {101, 141}; private: Page *redirect_page; bool local_thumbnail; |