aboutsummaryrefslogtreecommitdiff
path: root/include/QuickMedia.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-09-10 22:17:34 +0200
committerdec05eba <dec05eba@protonmail.com>2022-09-10 22:17:34 +0200
commit0ea083cbd4013cf2e709a3e3810ae96167585a74 (patch)
tree119f1fb52c94442d7d01d1a7992ac1a9f3b387a6 /include/QuickMedia.hpp
parent1c150eeb1d530e19976c945e69410c0cf26a3cb0 (diff)
Matrix: better name for clipboard file (with extension), give pantalaimon files proper filenames when downloading
Diffstat (limited to 'include/QuickMedia.hpp')
-rw-r--r--include/QuickMedia.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/QuickMedia.hpp b/include/QuickMedia.hpp
index 4011ca0..8dca09e 100644
--- a/include/QuickMedia.hpp
+++ b/include/QuickMedia.hpp
@@ -134,7 +134,7 @@ namespace QuickMedia {
bool page_loop(std::vector<Tab> &tabs, int start_tab_index = 0, PageLoopSubmitHandler after_submit_handler = nullptr, bool go_to_previous_on_escape = true);
void redirect_focus_to_video_player_window(mgl::WindowHandle video_player_window);
void show_video_player_window(mgl::WindowHandle video_player_window);
- void video_page_download_video(const std::string &url, mgl::WindowHandle video_player_window = 0);
+ void video_page_download_video(const std::string &url, const std::string &filename, mgl::WindowHandle video_player_window = 0);
bool video_download_if_non_streamable(std::string &video_url, std::string &audio_url, bool &is_audio_only, bool &has_embedded_audio, PageType previous_page);
int video_get_max_height();
void video_content_page(Page *parent_page, VideoPage *video_page, std::string video_title, bool download_if_streaming_fails, Body *parent_body, int play_index, int *parent_body_page = nullptr, const std::string &parent_page_search = "");
@@ -147,7 +147,7 @@ namespace QuickMedia {
void chat_login_page();
bool chat_page(MatrixChatPage *matrix_chat_page, RoomData *current_room);
void after_matrix_login_page();
- void download_page(std::string url);
+ void download_page(std::string url, std::string download_filename);
// Returns the full path where the file should be saved, or an empty string if the operation was cancelled
std::string file_save_page(const std::string &filename);