aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/QuickMedia.cpp4
-rw-r--r--src/plugins/Manga.cpp2
-rw-r--r--src/plugins/Page.cpp4
3 files changed, 6 insertions, 4 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index ac56f5d..258249b 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -1497,7 +1497,7 @@ namespace QuickMedia {
return search_bar;
}
- bool Program::load_manga_content_storage(const char *service_name, const std::string &manga_title, const std::string &manga_id) {
+ bool Program::load_manga_content_storage(const char *service_name, const std::string &manga_title, const std::string &manga_url, const std::string &manga_id) {
Path content_storage_dir = get_storage_dir().join(service_name);
manga_id_base64 = base64_url_encode(manga_id);
content_storage_file = content_storage_dir.join(manga_id_base64);
@@ -1520,6 +1520,7 @@ namespace QuickMedia {
content_storage_json = Json::Value(Json::objectValue);
content_storage_json["name"] = manga_title;
+ content_storage_json["url"] = manga_url;
return result;
}
@@ -3550,6 +3551,7 @@ namespace QuickMedia {
}
json_chapter["current"] = std::min(latest_read, num_manga_pages);
json_chapter["total"] = num_manga_pages;
+ json_chapter["url"] = images_page->get_url();
json_chapters[images_page->get_chapter_name()] = json_chapter;
content_storage_json["chapters"] = json_chapters;
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) {