aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Youtube.hpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/plugins/Youtube.hpp b/plugins/Youtube.hpp
index de8a0c3..1088df9 100644
--- a/plugins/Youtube.hpp
+++ b/plugins/Youtube.hpp
@@ -103,7 +103,15 @@ namespace QuickMedia {
class YoutubeChannelPage : public LazyFetchPage, public TrackablePage {
public:
- YoutubeChannelPage(Program *program, std::string url, std::string continuation_token, std::string title) : LazyFetchPage(program), TrackablePage(title, url), url(url), continuation_token(std::move(continuation_token)), title(title) {}
+ enum class Type {
+ VIDEOS,
+ SHORTS,
+ LIVE
+ };
+
+ static void create_each_type(Program *program, std::string url, std::string continuation_token, std::string title, std::vector<Tab> &tabs);
+
+ YoutubeChannelPage(Program *program, std::string url, std::string continuation_token, std::string title, Type type);
const char* get_title() const override { return title.c_str(); }
bool search_is_filter() override { return false; }
SearchResult search(const std::string &str, BodyItems &result_items) override;
@@ -122,6 +130,7 @@ namespace QuickMedia {
std::string continuation_token;
const std::string title;
int current_page = 0;
+ Type type;
};
struct YoutubeSubscriptionTaskResult {