diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-10-28 22:14:51 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2019-10-29 00:59:49 +0100 |
commit | be7a58b8e37e70bae5c6699ca9b7a0fec1fd72f9 (patch) | |
tree | 7cd8fa214514d66d02c45cb159f246c8b9150d1f /plugins | |
parent | 41fd233b903587f5c643595d0497e87546ba54de (diff) |
start on soundcloud, NOT FINISHED
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Soundcloud.hpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/plugins/Soundcloud.hpp b/plugins/Soundcloud.hpp new file mode 100644 index 0000000..cf920be --- /dev/null +++ b/plugins/Soundcloud.hpp @@ -0,0 +1,20 @@ +#pragma once + +#include "Plugin.hpp" + +namespace QuickMedia { + class Soundcloud : public Plugin { + public: + Soundcloud() : Plugin("soundcloud") {} + 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 350; } + bool search_suggestion_is_search() const override { return true; } + Page get_page_after_search() const override { return Page::VIDEO_CONTENT; } + private: + std::string last_related_media_playlist_id; + BodyItems last_playlist_data; + }; +}
\ No newline at end of file |