aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-09-10 18:07:02 +0200
committerdec05eba <dec05eba@protonmail.com>2021-09-10 18:07:02 +0200
commit5a02e569a307293f1ec6c837335bd0a498898ed1 (patch)
treee0d7a270b9894f9431d9df4d79eae0facc6bb9e3 /plugins
parentce3f65d72ffbfb6eba4fa2dea091d47e28408e55 (diff)
Make manga tracking more robust by preparing for breakage by also saving url
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Page.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Page.hpp b/plugins/Page.hpp
index 925a53a..29fce27 100644
--- a/plugins/Page.hpp
+++ b/plugins/Page.hpp
@@ -77,7 +77,7 @@ namespace QuickMedia {
std::unique_ptr<Body> create_body(bool plain_text_list = false, bool prefer_card_view = false);
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);
+ bool load_manga_content_storage(const char *service_name, const std::string &manga_title, const std::string &manga_url, const std::string &manga_id);
Program *program;
std::shared_ptr<BodyItem> submit_body_item; // TODO: Remove this
@@ -135,7 +135,7 @@ namespace QuickMedia {
virtual std::unique_ptr<Page> create_channels_page(Program *program, const std::string &channel_url) = 0;
virtual void set_url(std::string new_url) { url = std::move(new_url); }
std::string get_url() { return url; }
- virtual std::string get_download_url(int max_height) { return url; }
+ virtual std::string get_download_url(int max_height) { (void)max_height; return url; }
// Returns empty string for no timestamp or if the video doesn't support timestamps.
// Timestamp is in seconds.
virtual std::string get_url_timestamp() { return ""; }