aboutsummaryrefslogtreecommitdiff
path: root/plugins/MangaGeneric.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-04-27 14:00:35 +0200
committerdec05eba <dec05eba@protonmail.com>2021-04-27 14:00:35 +0200
commit1ba58ba74a767a91b28f44eb75db41455adcaa70 (patch)
tree5fef40f51fd4fd11966ec58933d10e540fb9fb59 /plugins/MangaGeneric.hpp
parent76e1aebbe075287a8297194b38343467c76dd964 (diff)
Add authors page for mangakatana and mangatown, attempt to fix image loading getting stuck, misc fixed related to async in plugins
Diffstat (limited to 'plugins/MangaGeneric.hpp')
-rw-r--r--plugins/MangaGeneric.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/MangaGeneric.hpp b/plugins/MangaGeneric.hpp
index a03756d..2dca919 100644
--- a/plugins/MangaGeneric.hpp
+++ b/plugins/MangaGeneric.hpp
@@ -113,9 +113,8 @@ namespace QuickMedia {
MangaGenericSearchPage& description_handler(std::vector<DescriptionQuery> queries);
// This is optional.
MangaGenericSearchPage& thumbnail_handler(std::vector<ThumbnailQuery> queries);
- // If |url_contains| is null, then any matching query is added. If |title_field| is "text", then the inner text is used.
// This is optional.
- MangaGenericSearchPage& authors_handler(const char *html_query, const char *title_field, const char *url_field, const char *url_contains);
+ MangaGenericSearchPage& authors_handler(std::vector<AuthorsQuery> queries);
// If |url_contains| is null, then any matching query is added. If |title_field| is "text", then the inner text is used.
// This is required.
@@ -151,7 +150,7 @@ namespace QuickMedia {
std::vector<TextQuery> text_queries;
std::vector<DescriptionQuery> description_queries;
std::vector<ThumbnailQuery> thumbnail_queries;
- AuthorsQuery authors_query;
+ std::vector<AuthorsQuery> authors_queries;
ListChaptersQuery list_chapters_query;
ListPageQuery list_page_query;
MangaIdExtractor manga_id_extractor;
@@ -192,6 +191,7 @@ namespace QuickMedia {
ImageResult get_number_of_images(int &num_images) override;
ImageResult for_each_page_in_chapter(PageCallback callback) override;
const char* get_service_name() const override { return service_name; }
+ const char* get_website_url() const override { return website_url.c_str(); }
private:
ImageResult get_page_image_urls();
private: