aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-08-15 20:56:41 +0200
committerdec05eba <dec05eba@protonmail.com>2020-08-15 20:56:41 +0200
commit356c5e185e947905b7da7ab36a2e77a95845074a (patch)
treeb5d064e146594dae14f470bcb01c21a60cc18d4f /src
parentb31bbdf6cf133f16752a7b0f78cbe9ae2fa667e2 (diff)
Do not save cookies for youtube anymore
Diffstat (limited to 'src')
-rw-r--r--src/VideoPlayer.cpp2
-rw-r--r--src/plugins/Youtube.cpp16
2 files changed, 10 insertions, 8 deletions
diff --git a/src/VideoPlayer.cpp b/src/VideoPlayer.cpp
index e124db1..5099a6b 100644
--- a/src/VideoPlayer.cpp
+++ b/src/VideoPlayer.cpp
@@ -93,6 +93,7 @@ namespace QuickMedia {
});
}
+ /*
std::string ytdl_options_arg;
if(!plugin_name.empty()) {
Path cookies_filepath;
@@ -103,6 +104,7 @@ namespace QuickMedia {
args.push_back(ytdl_options_arg.c_str());
}
}
+ */
args.insert(args.end(), { "--", path, nullptr });
diff --git a/src/plugins/Youtube.cpp b/src/plugins/Youtube.cpp
index 6f21991..d779ebc 100644
--- a/src/plugins/Youtube.cpp
+++ b/src/plugins/Youtube.cpp
@@ -91,8 +91,8 @@ namespace QuickMedia {
{ "-H", "referer: " + url }
};
- std::vector<CommandArg> cookies = get_cookies();
- additional_args.insert(additional_args.end(), cookies.begin(), cookies.end());
+ /*std::vector<CommandArg> cookies = get_cookies();
+ additional_args.insert(additional_args.end(), cookies.begin(), cookies.end());*/
std::string website_data;
if(download_to_string(url + "?pbj=1", website_data, additional_args, use_tor, true) != DownloadResult::OK)
@@ -316,8 +316,8 @@ namespace QuickMedia {
{ "-H", "referer: " + url }
};
- std::vector<CommandArg> cookies = get_cookies();
- additional_args.insert(additional_args.end(), cookies.begin(), cookies.end());
+ /*std::vector<CommandArg> cookies = get_cookies();
+ additional_args.insert(additional_args.end(), cookies.begin(), cookies.end());*/
std::string website_data;
if(download_to_string(url + "&pbj=1", website_data, additional_args, use_tor, true) != DownloadResult::OK)
@@ -396,8 +396,8 @@ namespace QuickMedia {
{ "-H", "referer: " + url }
};
- std::vector<CommandArg> cookies = get_cookies();
- additional_args.insert(additional_args.end(), cookies.begin(), cookies.end());
+ /*std::vector<CommandArg> cookies = get_cookies();
+ additional_args.insert(additional_args.end(), cookies.begin(), cookies.end());*/
std::string website_data;
if(download_to_string(next_url, website_data, additional_args, use_tor, true) != DownloadResult::OK)
@@ -504,8 +504,8 @@ namespace QuickMedia {
{ "-H", "referer: " + url }
};
- std::vector<CommandArg> cookies = get_cookies();
- additional_args.insert(additional_args.end(), cookies.begin(), cookies.end());
+ /*std::vector<CommandArg> cookies = get_cookies();
+ additional_args.insert(additional_args.end(), cookies.begin(), cookies.end());*/
std::string website_data;
if(download_to_string(modified_url, website_data, additional_args, use_tor, true) != DownloadResult::OK)