diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-09-16 16:58:07 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-09-16 16:58:07 +0200 |
commit | 51bdadf793ab791e09bf1d355a84cd2c4e2ac42e (patch) | |
tree | 0f96f595db42f4ec500083c04535c0dbf7faaefa | |
parent | 848ae799803a448d7b66f528fd4e033e2b50ffc3 (diff) |
Fix age restricted youtube videos
-rw-r--r-- | TODO | 1 | ||||
-rw-r--r-- | src/plugins/Youtube.cpp | 6 |
2 files changed, 5 insertions, 2 deletions
@@ -158,7 +158,6 @@ Add option to view dead link in 4chan with 4chan archive and navigate to crossbo Show latest message before sync is done for a room when the latest message is an edit. Right now it has to fetch previous messages until the first non-edit message. Allow resuming downloads. Support downloading live youtube videos. -Youtube broke age restricted video again. Need to find a fix. It kinda works in yt-dlp, but not always. Use the new player innertube api. To make that work quickmedia will need to extract signatureTimestamp (sts) and set that in the form request. Youtube-dl does this. Instead of resetting text items in body, add a clear function to text. That way we can easily cache the height of the text. Check if message edits that are replies to me makes a now notification show up. This shouldn't happen, but also take into consideration initial sync. diff --git a/src/plugins/Youtube.cpp b/src/plugins/Youtube.cpp index 993b197..74d0cbe 100644 --- a/src/plugins/Youtube.cpp +++ b/src/plugins/Youtube.cpp @@ -2454,7 +2454,11 @@ R"END( "client": { "clientName": "ANDROID", "clientVersion": "16.20", - "hl": "en" + "hl": "en", + "clientScreen": "EMBED" + }, + "thirdParty": { + "embedUrl": "https://google.com" } }, "videoId": "%VIDEO_ID%", |