aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-06-11 06:52:04 +0200
committerdec05eba <dec05eba@protonmail.com>2021-06-11 06:52:04 +0200
commit8ad3f9ab8cc7029eb5db937e229d2a37b51a3462 (patch)
tree3b6592c16a6986aba818522c532768983a959388 /plugins
parent6443ce7df2d690c5a03dc68cb6866f5d7d4e3fba (diff)
Readd youtube video title
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Page.hpp2
-rw-r--r--plugins/Youtube.hpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Page.hpp b/plugins/Page.hpp
index 0654fa7..0ed4933 100644
--- a/plugins/Page.hpp
+++ b/plugins/Page.hpp
@@ -124,7 +124,7 @@ namespace QuickMedia {
virtual std::string get_audio_url() { return ""; }
virtual std::string url_get_playable_url(const std::string &url) { return url; }
virtual bool video_should_be_skipped(const std::string &url) { (void)url; return false; }
- virtual PluginResult load(std::string &channel_url) { (void)channel_url; return PluginResult::OK; }
+ virtual PluginResult load(std::string &title, std::string &channel_url) { (void)title; (void)channel_url; return PluginResult::OK; }
virtual void mark_watched() {};
protected:
std::string url;
diff --git a/plugins/Youtube.hpp b/plugins/Youtube.hpp
index 20c04fc..9a0353e 100644
--- a/plugins/Youtube.hpp
+++ b/plugins/Youtube.hpp
@@ -140,7 +140,7 @@ namespace QuickMedia {
std::unique_ptr<Page> create_channels_page(Program *program, const std::string &channel_url) override;
std::string get_video_url(int max_height, bool &has_embedded_audio) override;
std::string get_audio_url() override;
- PluginResult load(std::string &channel_url) override;
+ PluginResult load(std::string &title, std::string &channel_url) override;
void mark_watched() override;
private:
void parse_format(const Json::Value &format_json, bool is_adaptive);