aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Lbry.hpp3
-rw-r--r--plugins/LocalAnime.hpp3
2 files changed, 4 insertions, 2 deletions
diff --git a/plugins/Lbry.hpp b/plugins/Lbry.hpp
index 0eeaf86..4228544 100644
--- a/plugins/Lbry.hpp
+++ b/plugins/Lbry.hpp
@@ -1,6 +1,7 @@
#pragma once
#include "Page.hpp"
+#include "../include/M3U8.hpp"
namespace QuickMedia {
class LbrySearchPage : public Page {
@@ -44,6 +45,6 @@ namespace QuickMedia {
PluginResult load(const SubmitArgs &args, VideoInfo &video_info, std::string &err_str) override;
private:
std::string title;
- std::string streaming_url;
+ std::vector<M3U8Stream> streams;
};
} \ No newline at end of file
diff --git a/plugins/LocalAnime.hpp b/plugins/LocalAnime.hpp
index 6edf1c8..d0194ba 100644
--- a/plugins/LocalAnime.hpp
+++ b/plugins/LocalAnime.hpp
@@ -36,7 +36,7 @@ namespace QuickMedia {
: LazyFetchPage(program), parent_search_page(nullptr), fetch_home_page(true) {}
LocalAnimeSearchPage(Program *program, std::vector<LocalAnimeItem> anime_items, LocalAnimeSearchPage *parent_search_page = nullptr)
: LazyFetchPage(program), parent_search_page(parent_search_page), anime_items(std::move(anime_items)) {}
- const char* get_title() const override { return "Search"; }
+ const char* get_title() const override { return title.empty() ? "Search" : title.c_str(); }
bool search_is_filter() override { return true; }
PluginResult submit(const SubmitArgs &args, std::vector<Tab> &result_tabs) override;
PluginResult lazy_fetch(BodyItems &result_items) override;
@@ -44,6 +44,7 @@ namespace QuickMedia {
bool reseek_to_body_item_by_url() override { return true; }
LocalAnimeSearchPage *parent_search_page;
+ std::string title;
private:
std::vector<LocalAnimeItem> anime_items;
bool fetch_home_page = false;