diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-07-01 23:57:51 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-07-01 23:57:51 +0200 |
commit | 0bf55deae8d8a681b32a1fa91908ed1f566dbbf5 (patch) | |
tree | 4ada8aa2fa69c1da2bb6be2a03473f15e0a17611 /src/plugins | |
parent | 9650dba396e737649254050f6e421adf611766c8 (diff) |
Mangatown: use referer header for thumbnails to fix permission issue
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/MangaGeneric.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/MangaGeneric.cpp b/src/plugins/MangaGeneric.cpp index 47fbf08..767f077 100644 --- a/src/plugins/MangaGeneric.cpp +++ b/src/plugins/MangaGeneric.cpp @@ -142,6 +142,9 @@ namespace QuickMedia { } SearchResult MangaGenericSearchPage::search(const std::string &str, BodyItems &result_items) { + if(str.empty()) + return SearchResult::OK; + return plugin_result_to_search_result(get_page(str, 0, result_items)); } |