From 47d594f0676a644e7c072331a009ceb46de8f62e Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 19 Jun 2023 02:18:47 +0200 Subject: Lbry: fix videos not working --- plugins/Lbry.hpp | 3 ++- plugins/LocalAnime.hpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'plugins') 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 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 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 &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 anime_items; bool fetch_home_page = false; -- cgit v1.2.3