From ad1077586958cae19acbe925b0be354902a7cb9e Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 27 Jul 2020 04:23:41 +0200 Subject: Use ytdl cookie for video --- src/VideoPlayer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/VideoPlayer.cpp b/src/VideoPlayer.cpp index b9b3440..e124db1 100644 --- a/src/VideoPlayer.cpp +++ b/src/VideoPlayer.cpp @@ -93,14 +93,14 @@ namespace QuickMedia { }); } - std::string cookies_file_arg; + std::string ytdl_options_arg; 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()); } else { - cookies_file_arg = "--cookies-file=" + cookies_filepath.data; - args.insert(args.end(), { "--cookies", cookies_file_arg.c_str() }); + ytdl_options_arg = "--ytdl-raw-options=cookies=" + cookies_filepath.data; + args.push_back(ytdl_options_arg.c_str()); } } -- cgit v1.2.3