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
This commit is contained in:
Jesus E
2023-05-28 21:30:51 -04:00
parent c6e1b366b5
commit e54596f3e9
3 changed files with 118 additions and 68 deletions

View File

@@ -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: '