aboutsummaryrefslogtreecommitdiff
path: root/src/VideoPlayer.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-03-30 00:45:51 +0200
committerdec05eba <dec05eba@protonmail.com>2021-03-30 00:45:51 +0200
commit539d9b457c4f30ef0731a479772212e7ce8bfd7c (patch)
tree256aae0d3524918ba80d609cadd9063cd06fb453 /src/VideoPlayer.cpp
parent3ac540c21116cb9cc91cfd1d7b0dd6f6ded31123 (diff)
Remove tor option. Use torsocks instead (which is what quickmedia did anyways)
Diffstat (limited to 'src/VideoPlayer.cpp')
-rw-r--r--src/VideoPlayer.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/VideoPlayer.cpp b/src/VideoPlayer.cpp
index adda2bf..3f3df0c 100644
--- a/src/VideoPlayer.cpp
+++ b/src/VideoPlayer.cpp
@@ -18,9 +18,8 @@ const int MAX_RETRIES_CONNECT = 1000;
const int READ_TIMEOUT_MS = 200;
namespace QuickMedia {
- VideoPlayer::VideoPlayer(bool use_tor, bool no_video, bool use_system_mpv_config, bool resume_playback, bool keep_open, EventCallbackFunc _event_callback, VideoPlayerWindowCreateCallback _window_create_callback, const std::string &resource_root, int monitor_height) :
+ VideoPlayer::VideoPlayer(bool no_video, bool use_system_mpv_config, bool resume_playback, bool keep_open, EventCallbackFunc _event_callback, VideoPlayerWindowCreateCallback _window_create_callback, const std::string &resource_root, int monitor_height) :
exit_status(0),
- use_tor(use_tor),
no_video(no_video),
use_system_mpv_config(use_system_mpv_config),
resume_playback(resume_playback),
@@ -74,8 +73,6 @@ namespace QuickMedia {
const std::string parent_window_str = std::to_string(parent_window);
std::vector<const char*> args;
- if(use_tor)
- args.push_back("torsocks");
std::string input_ipc_server_arg = "--input-ipc-server=";
input_ipc_server_arg += ipc_server_path;
@@ -133,7 +130,7 @@ namespace QuickMedia {
/*
std::string ytdl_options_arg;
- if(!use_tor && !plugin_name.empty()) {
+ if(!plugin_name.empty()) {
Path cookies_filepath;
if(get_cookies_filepath(cookies_filepath, plugin_name) != 0) {
fprintf(stderr, "Warning: Failed to create %s cookies file\n", plugin_name.c_str());