aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2025-06-14 22:55:16 +0200
committerdec05eba <dec05eba@protonmail.com>2025-06-14 22:55:16 +0200
commit23295fe8df8568122e762b36114db8f3e4ef24a2 (patch)
treeb61a3e166a20f91ff10e85a28ca99b3803746e02 /plugins
parent52f8dc5d05f5e34b0a3cf4bb4e4fe607f06965c5 (diff)
Matrix: authenticated media requests with access token
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 ""; }