From b2adec14313749f67b8caae7f4952e0eae04a84d Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 27 Jun 2021 03:09:55 +0200 Subject: Fix youtube comments --- src/VideoPlayer.cpp | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/VideoPlayer.cpp') 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"; -- cgit v1.2.3