aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Youtube.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-08-10 17:46:38 +0200
committerdec05eba <dec05eba@protonmail.com>2021-08-10 17:46:38 +0200
commit54e09fcd55fcfc460ae1c254dba49c1a8d49b6ea (patch)
tree2b5e85332087c52dc7947f0c23625d38a2caffbb /src/plugins/Youtube.cpp
parent8af5901fb893c3fc25b31bf484a90b47d1c24c2c (diff)
Matrix: show unread message for room event if latest event is not a message, better youtube search
Diffstat (limited to 'src/plugins/Youtube.cpp')
-rw-r--r--src/plugins/Youtube.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/Youtube.cpp b/src/plugins/Youtube.cpp
index a386a70..ce1c153 100644
--- a/src/plugins/Youtube.cpp
+++ b/src/plugins/Youtube.cpp
@@ -769,7 +769,7 @@ namespace QuickMedia {
return SearchResult::OK;
// TODO: Find this search url from youtube.com/... searchbox.js, and the url to that script from youtube.com/ html
- std::string url = "https://suggestqueries-clients6.youtube.com/complete/search?client=youtube&hl=en&gl=us&sugexp=rdcfrc%2Ccfro%3D1%2Cfp.cfr%3D1&gs_rn=64&gs_ri=youtube&ds=yt&cp=4&gs_id=f&xhr=t&xssi=t&q=";
+ std::string url = "https://suggestqueries-clients6.youtube.com/complete/search?client=youtube&hl=en&gl=us&sugexp=rdcfrc%2Ccfro%3D1%2Cfp.cfr%3D1&gs_rn=64&gs_ri=youtube&ds=yt&cp=34&gs_id=f&xhr=t&xssi=t&q=";
url += url_param_encode(str);
if(!video_id.empty())
url += "&video_id=" + video_id;