aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-02-03 21:09:26 +0100
committerdec05eba <dec05eba@protonmail.com>2022-02-03 21:09:26 +0100
commit9f12d8a7f6e4cdf0cb95130b69da2b368cc9cbb5 (patch)
tree6b0c85fca617329a94fc94c0f4a247ff7ecd38fd /include
parentf7f45ddc492b992cc49a92f620e37316e4d1fed4 (diff)
Add thumbnail to manga history page. Start on new manga history format (one json file)
Diffstat (limited to 'include')
-rw-r--r--include/QuickMedia.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/QuickMedia.hpp b/include/QuickMedia.hpp
index f476396..ce63fbb 100644
--- a/include/QuickMedia.hpp
+++ b/include/QuickMedia.hpp
@@ -99,7 +99,7 @@ namespace QuickMedia {
void manga_get_watch_history(const char *plugin_name, BodyItems &history_items);
void youtube_get_watch_history(BodyItems &history_items);
- Json::Value load_video_history_json();
+ Json::Value load_history_json();
void set_clipboard(const std::string &str);
private:
@@ -121,6 +121,7 @@ namespace QuickMedia {
bool video_download_if_non_streamable(std::string &video_url, std::string &audio_url, bool &is_audio_only, bool &has_embedded_audio, PageType previous_page);
int video_get_max_height();
void video_content_page(Page *parent_page, VideoPage *video_page, std::string video_title, bool download_if_streaming_fails, Body *parent_body, int play_index, int *parent_body_page = nullptr, const std::string &parent_page_search = "");
+ void update_manga_history(const std::string &manga_id, const std::string &thumbnail_url);
void save_manga_progress(MangaImagesPage *images_page, Json::Value &json_chapters, Json::Value &json_chapter, int &latest_read);
// Returns -1 to go to previous chapter, 0 to stay on same chapter and 1 to go to next chapter
int image_page(MangaImagesPage *images_page, Body *chapters_body);
@@ -167,6 +168,7 @@ namespace QuickMedia {
int image_index;
Path content_storage_file;
Path content_cache_dir;
+ std::string manga_id;
std::string manga_id_base64;
Json::Value content_storage_json;
bool content_storage_file_modified = false;