diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-02-03 21:09:26 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-02-03 21:09:26 +0100 |
commit | 9f12d8a7f6e4cdf0cb95130b69da2b368cc9cbb5 (patch) | |
tree | 6b0c85fca617329a94fc94c0f4a247ff7ecd38fd /plugins/Manga.hpp | |
parent | f7f45ddc492b992cc49a92f620e37316e4d1fed4 (diff) |
Add thumbnail to manga history page. Start on new manga history format (one json file)
Diffstat (limited to 'plugins/Manga.hpp')
-rw-r--r-- | plugins/Manga.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/Manga.hpp b/plugins/Manga.hpp index a298c11..7b67e13 100644 --- a/plugins/Manga.hpp +++ b/plugins/Manga.hpp @@ -20,7 +20,8 @@ namespace QuickMedia { class MangaImagesPage : public Page { public: - MangaImagesPage(Program *program, std::string manga_name, std::string chapter_name, std::string url) : Page(program), manga_name(std::move(manga_name)), chapter_name(std::move(chapter_name)), url(std::move(url)), chapter_num_pages(-1) {} + MangaImagesPage(Program *program, std::string manga_name, std::string chapter_name, std::string url, std::string thumbnail_url) : + Page(program), manga_name(std::move(manga_name)), thumbnail_url(std::move(thumbnail_url)), chapter_name(std::move(chapter_name)), url(std::move(url)), chapter_num_pages(-1) {} virtual ~MangaImagesPage() = default; const char* get_title() const override { return chapter_name.c_str(); } PageTypez get_type() const override { return PageTypez::MANGA_IMAGES; } @@ -46,6 +47,7 @@ namespace QuickMedia { virtual const char* get_website_url() const = 0; const std::string manga_name; + const std::string thumbnail_url; protected: std::string chapter_name; std::string url; |