From c6e1b366b5cf4e1d7e52631e4dedc935ea021154 Mon Sep 17 00:00:00 2001 From: Jesus E Date: Sun, 28 May 2023 21:21:11 -0400 Subject: 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 --- youtube/watch.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'youtube/watch.py') 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', }, -- cgit v1.2.3