diff options
-rw-r--r-- | src/VideoPlayer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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()); } } |