aboutsummaryrefslogtreecommitdiff
path: root/src/VideoPlayer.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-06-27 03:09:55 +0200
committerdec05eba <dec05eba@protonmail.com>2021-06-27 03:09:55 +0200
commitb2adec14313749f67b8caae7f4952e0eae04a84d (patch)
tree272ba6ee0962ef95728e04b1a7ba162383fd75e3 /src/VideoPlayer.cpp
parentdfa4e24f72996d507e710fc6839367536237c501 (diff)
Fix youtube comments
Diffstat (limited to 'src/VideoPlayer.cpp')
-rw-r--r--src/VideoPlayer.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/VideoPlayer.cpp b/src/VideoPlayer.cpp
index 65e894f..eb2e7d5 100644
--- a/src/VideoPlayer.cpp
+++ b/src/VideoPlayer.cpp
@@ -162,17 +162,6 @@ namespace QuickMedia {
if(keep_open)
args.push_back("--keep-open=yes");
- Path cookies_filepath;
- std::string cookies_arg;
- if(get_cookies_filepath(cookies_filepath, is_youtube ? "youtube" : plugin_name) == 0) {
- cookies_arg = "--cookies-file=";
- cookies_arg += cookies_filepath.data;
- args.push_back("--cookies");
- args.push_back(cookies_arg.c_str());
- } else {
- fprintf(stderr, "Failed to create %s cookies filepath\n", is_youtube ? "youtube" : plugin_name.c_str());
- }
-
std::string ytdl_format;
if(no_video)
ytdl_format = "--ytdl-format=bestaudio/best";