diff options
author | Jesus E <heckyel@riseup.net> | 2023-05-28 21:21:11 -0400 |
---|---|---|
committer | Jesus E <heckyel@riseup.net> | 2023-05-28 21:21:11 -0400 |
commit | c6e1b366b5cf4e1d7e52631e4dedc935ea021154 (patch) | |
tree | ee3dd35d1ecceb20a7e7994305f9a5a32ae73a89 | |
parent | 43e7f7ce936b34fedd01a70f606c5fe2997d70a5 (diff) | |
download | yt-local-c6e1b366b5cf4e1d7e52631e4dedc935ea021154.tar.lz yt-local-c6e1b366b5cf4e1d7e52631e4dedc935ea021154.tar.xz yt-local-c6e1b366b5cf4e1d7e52631e4dedc935ea021154.zip |
Fix "This video is unavailable" due to outdated android
client
Send the latest android client version as well as a new key
with the sdk version.
See https://github.com/iv-org/invidious/pull/3255 for more details
Fixes #165
-rw-r--r-- | youtube/watch.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube/watch.py b/youtube/watch.py index 97151e8..c18347e 100644 --- a/youtube/watch.py +++ b/youtube/watch.py @@ -362,7 +362,8 @@ def extract_info(video_id, use_invidious, playlist_id=None, index=None): context = { 'client': { 'clientName': 'ANDROID', - 'clientVersion': '16.20', + 'clientVersion': '17.29.35', + 'androidSdkVersion': '31', 'gl': 'US', 'hl': 'en', }, |