aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-08-09 05:13:38 +0200
committerdec05eba <dec05eba@protonmail.com>2019-08-09 05:13:41 +0200
commitafc8c731bdf482e87304d2f5df6cfc55018806b6 (patch)
treeada70b28a1d5ebc89cfb0e0e733847279427bc39 /plugins
parent1e1960a14ae40c6743ea12dc0f9efe5e714e4bff (diff)
Add pornhub plugin
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Pornhub.hpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/plugins/Pornhub.hpp b/plugins/Pornhub.hpp
new file mode 100644
index 0000000..edbfdab
--- /dev/null
+++ b/plugins/Pornhub.hpp
@@ -0,0 +1,16 @@
+#pragma once
+
+#include "Plugin.hpp"
+
+namespace QuickMedia {
+ class Pornhub : public Plugin {
+ public:
+ SuggestionResult update_search_suggestions(const std::string &text, BodyItems &result_items) override;
+ BodyItems get_related_media(const std::string &url) override;
+ bool search_suggestions_has_thumbnails() const override { return true; }
+ bool search_results_has_thumbnails() const override { return false; }
+ int get_search_delay() const override { return 500; }
+ bool search_suggestion_is_search() const override { return true; }
+ Page get_page_after_search() const override { return Page::VIDEO_CONTENT; }
+ };
+} \ No newline at end of file