diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-06-22 16:07:20 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-06-22 16:07:20 +0200 |
commit | e4792f46d545263d16db21bd0caf71345a69b63f (patch) | |
tree | e12c1d01060e6559b17c0928363446b4e49b3232 /src/plugins/youtube | |
parent | e5518e0d876287d047312a59263d35bd567b2c0c (diff) |
Only do youtube redirect on failure to load video
Diffstat (limited to 'src/plugins/youtube')
-rw-r--r-- | src/plugins/youtube/Signature.cpp | 2 |
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; |