aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-07-13 13:48:30 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-13 13:49:50 +0200
commitdc72e253df77c9126c720e7ff5dad7f8c72bd117 (patch)
tree7f862456a8d20d2f615b0a900090c2a3baf4bd34 /include
parentb96dce2d670e085067d7b62b43fceac7658c2d5a (diff)
Temporary disable youtube recommendations, fix youtube related videos
Diffstat (limited to 'include')
-rw-r--r--include/Storage.hpp1
-rw-r--r--include/VideoPlayer.hpp4
2 files changed, 3 insertions, 2 deletions
diff --git a/include/Storage.hpp b/include/Storage.hpp
index 39af8e6..601336a 100644
--- a/include/Storage.hpp
+++ b/include/Storage.hpp
@@ -17,6 +17,7 @@ namespace QuickMedia {
Path get_home_dir();
Path get_storage_dir();
Path get_cache_dir();
+ int get_cookies_filepath(Path &path, const std::string &plugin_name);
int create_directory_recursive(const Path &path);
FileType get_file_type(const Path &path);
int file_get_content(const Path &path, std::string &result);
diff --git a/include/VideoPlayer.hpp b/include/VideoPlayer.hpp
index c5d9cfe..9501e26 100644
--- a/include/VideoPlayer.hpp
+++ b/include/VideoPlayer.hpp
@@ -42,7 +42,7 @@ namespace QuickMedia {
VideoPlayer& operator=(const VideoPlayer&) = delete;
// @path can also be an url if youtube-dl is installed and accessible to mpv
- Error load_video(const char *path, sf::WindowHandle parent_window);
+ Error load_video(const char *path, sf::WindowHandle parent_window, const std::string &plugin_name);
// Should be called every update frame
Error update();
@@ -63,7 +63,7 @@ namespace QuickMedia {
Error set_property(const std::string &property_name, const Json::Value &value);
Error get_property(const std::string &property_name, Json::Value *result, Json::ValueType result_type);
Error send_command(const char *cmd, size_t size);
- Error launch_video_process(const char *path, sf::WindowHandle parent_window);
+ Error launch_video_process(const char *path, sf::WindowHandle parent_window, const std::string &plugin_name);
VideoPlayer::Error read_ipc_func();
private:
bool use_tor;