aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Matrix.hpp5
-rw-r--r--plugins/Page.hpp1
2 files changed, 4 insertions, 2 deletions
diff --git a/plugins/Matrix.hpp b/plugins/Matrix.hpp
index 23b0a8a..9841510 100644
--- a/plugins/Matrix.hpp
+++ b/plugins/Matrix.hpp
@@ -548,8 +548,9 @@ namespace QuickMedia {
class MatrixVideoPage : public VideoPage {
public:
MatrixVideoPage(Program *program, std::string filename) : VideoPage(program, ""), filename(std::move(filename)) {}
- const char* get_title() const override { return ""; }
- std::string get_filename() override { return filename; }
+ const char* get_title() const override;
+ std::string get_filename() override;
+ std::string get_download_url_for_clipboard(int max_height) override;
private:
std::string filename;
};
diff --git a/plugins/Page.hpp b/plugins/Page.hpp
index 044759a..9e844b3 100644
--- a/plugins/Page.hpp
+++ b/plugins/Page.hpp
@@ -165,6 +165,7 @@ namespace QuickMedia {
virtual void set_url(std::string new_url) { url = std::move(new_url); }
std::string get_url() { return url; }
virtual std::string get_download_url(int max_height) { (void)max_height; return url; }
+ virtual std::string get_download_url_for_clipboard(int max_height) { return get_download_url(max_height); }
// Returns empty string for no timestamp or if the video doesn't support timestamps.
// Timestamp is in seconds.
virtual std::string get_url_timestamp() { return ""; }