aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-07-27 04:23:41 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-27 04:23:41 +0200
commitad1077586958cae19acbe925b0be354902a7cb9e (patch)
tree0d3402cda50a267f9eecb79cbb8776ca7ee1f250 /src
parent6c6bc3daf872787f8ceca2e9452ae50a0010dbfa (diff)
Use ytdl cookie for video
Diffstat (limited to 'src')
-rw-r--r--src/VideoPlayer.cpp6
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());
}
}