aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/youtube
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-06-22 16:07:20 +0200
committerdec05eba <dec05eba@protonmail.com>2021-06-22 16:07:20 +0200
commite4792f46d545263d16db21bd0caf71345a69b63f (patch)
treee12c1d01060e6559b17c0928363446b4e49b3232 /src/plugins/youtube
parente5518e0d876287d047312a59263d35bd567b2c0c (diff)
Only do youtube redirect on failure to load video
Diffstat (limited to 'src/plugins/youtube')
-rw-r--r--src/plugins/youtube/Signature.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/youtube/Signature.cpp b/src/plugins/youtube/Signature.cpp
index 65d4e2e..7631182 100644
--- a/src/plugins/youtube/Signature.cpp
+++ b/src/plugins/youtube/Signature.cpp
@@ -260,7 +260,7 @@ namespace QuickMedia {
int YoutubeSignatureDecryptor::update_decrypt_function() {
std::string response;
- DownloadResult download_result = download_to_string("https://www.youtube.com/?gl=US&hl=en", response, {}, true);
+ DownloadResult download_result = download_to_string("https://www.youtube.com/watch?v=jNQXAC9IVRw&gl=US&hl=en", response, {}, true);
if(download_result != DownloadResult::OK) {
fprintf(stderr, "YoutubeSignatureDecryptor::update_decrypt_function failed. Failed to get youtube page\n");
return U_DEC_FUN_NET_ERR;