From e54596f3e9bac1b5ef328b25e44604aa11479f83 Mon Sep 17 00:00:00 2001 From: Jesus E Date: Sun, 28 May 2023 21:30:51 -0400 Subject: Partially fix age restricted videos Does not work for videos that require decryption because decryption is not working (giving 403) for some reason. Related invidious issue for decryption not working: https://github.com/iv-org/invidious/issues/3245 Partial fix for #146 --- youtube/yt_data_extract/watch_extraction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'youtube/yt_data_extract/watch_extraction.py') diff --git a/youtube/yt_data_extract/watch_extraction.py b/youtube/yt_data_extract/watch_extraction.py index 31127e3..4f9ec30 100644 --- a/youtube/yt_data_extract/watch_extraction.py +++ b/youtube/yt_data_extract/watch_extraction.py @@ -791,7 +791,7 @@ def get_caption_url(info, language, format, automatic=False, translation_languag url += '&tlang=' + translation_language return url -def update_with_age_restricted_info(info, player_response): +def update_with_new_urls(info, player_response): '''Inserts urls from player_response json''' ERROR_PREFIX = 'Error getting missing player or bypassing age-restriction: ' -- cgit v1.2.3