aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-10-21 03:12:35 +0200
committerdec05eba <dec05eba@protonmail.com>2020-10-21 03:12:35 +0200
commitea6f1b425a6aa9b7145a00d81473ef9508279eec (patch)
tree61f3d59aa277b889ed149cf6ccd5fc9dc2b836c8 /plugins
parentf126659965425ee5f5a3851fbe83ae532e48c478 (diff)
Fix thumbnail fallback size being incorrect, incorrect read marker for matrix
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Mangadex.hpp1
-rw-r--r--plugins/Manganelo.hpp1
-rw-r--r--plugins/Mangatown.hpp1
-rw-r--r--plugins/Page.hpp2
4 files changed, 5 insertions, 0 deletions
diff --git a/plugins/Mangadex.hpp b/plugins/Mangadex.hpp
index ba43498..9990792 100644
--- a/plugins/Mangadex.hpp
+++ b/plugins/Mangadex.hpp
@@ -11,6 +11,7 @@ namespace QuickMedia {
bool search_is_filter() override { return false; }
SearchResult search(const std::string &str, BodyItems &result_items) override;
PluginResult submit(const std::string &title, const std::string &url, std::vector<Tab> &result_tabs) override;
+ sf::Vector2i get_max_thumbnail_size() override { return sf::Vector2i(101, 141); };
private:
bool get_rememberme_token(std::string &rememberme_token);
std::optional<std::string> rememberme_token;
diff --git a/plugins/Manganelo.hpp b/plugins/Manganelo.hpp
index d79f814..b82476c 100644
--- a/plugins/Manganelo.hpp
+++ b/plugins/Manganelo.hpp
@@ -11,6 +11,7 @@ namespace QuickMedia {
bool search_is_filter() override { return false; }
SearchResult search(const std::string &str, BodyItems &result_items) override;
PluginResult submit(const std::string &title, const std::string &url, std::vector<Tab> &result_tabs) override;
+ sf::Vector2i get_max_thumbnail_size() override { return sf::Vector2i(101, 141); };
private:
bool extract_id_from_url(const std::string &url, std::string &manga_id) const;
};
diff --git a/plugins/Mangatown.hpp b/plugins/Mangatown.hpp
index 151b4c2..0062d51 100644
--- a/plugins/Mangatown.hpp
+++ b/plugins/Mangatown.hpp
@@ -12,6 +12,7 @@ namespace QuickMedia {
SearchResult search(const std::string &str, BodyItems &result_items) override;
PluginResult get_page(const std::string &str, int page, BodyItems &result_items) override;
PluginResult submit(const std::string &title, const std::string &url, std::vector<Tab> &result_tabs) override;
+ sf::Vector2i get_max_thumbnail_size() override { return sf::Vector2i(101, 141); };
private:
bool extract_id_from_url(const std::string &url, std::string &manga_id) const;
};
diff --git a/plugins/Page.hpp b/plugins/Page.hpp
index 2adce85..fb828fb 100644
--- a/plugins/Page.hpp
+++ b/plugins/Page.hpp
@@ -40,6 +40,8 @@ namespace QuickMedia {
std::unique_ptr<SearchBar> create_search_bar(const std::string &placeholder_text, int search_delay);
bool load_manga_content_storage(const char *service_name, const std::string &manga_title, const std::string &manga_id);
+
+ virtual sf::Vector2i get_max_thumbnail_size() { return sf::Vector2i(480, 360); };
Program *program;
};