aboutsummaryrefslogtreecommitdiff
path: root/src/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 /src/plugins
parentce3f65d72ffbfb6eba4fa2dea091d47e28408e55 (diff)
Make manga tracking more robust by preparing for breakage by also saving url
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/Manga.cpp2
-rw-r--r--src/plugins/Page.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/Manga.cpp b/src/plugins/Manga.cpp
index 3fa5d47..1d44bee 100644
--- a/src/plugins/Manga.cpp
+++ b/src/plugins/Manga.cpp
@@ -18,7 +18,7 @@ namespace QuickMedia {
(void)body;
std::string manga_id;
if(extract_id_from_url(content_url, manga_id))
- load_manga_content_storage(get_service_name(), content_title, manga_id);
+ load_manga_content_storage(get_service_name(), content_title, content_url, manga_id);
}
std::shared_ptr<BodyItem> MangaChaptersPage::get_bookmark_body_item() {
diff --git a/src/plugins/Page.cpp b/src/plugins/Page.cpp
index b7ef30c..5ce86e6 100644
--- a/src/plugins/Page.cpp
+++ b/src/plugins/Page.cpp
@@ -39,8 +39,8 @@ namespace QuickMedia {
return program->create_search_bar(placeholder_text, search_delay);
}
- bool Page::load_manga_content_storage(const char *service_name, const std::string &manga_title, const std::string &manga_id) {
- return program->load_manga_content_storage(service_name, manga_title, manga_id);
+ bool Page::load_manga_content_storage(const char *service_name, const std::string &manga_title, const std::string &manga_url, const std::string &manga_id) {
+ return program->load_manga_content_storage(service_name, manga_title, manga_url, manga_id);
}
PluginResult BookmarksPage::submit(const std::string &title, const std::string &url, std::vector<Tab> &result_tabs) {