diff options
Diffstat (limited to 'src/VideoPlayer.cpp')
-rw-r--r-- | src/VideoPlayer.cpp | 7 |
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()); |