diff options
author | Jesus E <heckyel@riseup.net> | 2023-05-28 21:30:51 -0400 |
---|---|---|
committer | Jesus E <heckyel@riseup.net> | 2023-05-28 21:30:51 -0400 |
commit | e54596f3e9bac1b5ef328b25e44604aa11479f83 (patch) | |
tree | 5af65503f7b47037a0c5fbf7d70ffadd6c9c04bb /youtube/yt_data_extract/watch_extraction.py | |
parent | c6e1b366b5cf4e1d7e52631e4dedc935ea021154 (diff) | |
download | yt-local-e54596f3e9bac1b5ef328b25e44604aa11479f83.tar.lz yt-local-e54596f3e9bac1b5ef328b25e44604aa11479f83.tar.xz yt-local-e54596f3e9bac1b5ef328b25e44604aa11479f83.zip |
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
Diffstat (limited to 'youtube/yt_data_extract/watch_extraction.py')
-rw-r--r-- | youtube/yt_data_extract/watch_extraction.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: ' |