aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/yt_data_extract
diff options
context:
space:
mode:
authorJesus E <heckyel@riseup.net>2023-05-28 21:30:51 -0400
committerJesus E <heckyel@riseup.net>2023-05-28 21:30:51 -0400
commite54596f3e9bac1b5ef328b25e44604aa11479f83 (patch)
tree5af65503f7b47037a0c5fbf7d70ffadd6c9c04bb /youtube/yt_data_extract
parentc6e1b366b5cf4e1d7e52631e4dedc935ea021154 (diff)
downloadyt-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')
-rw-r--r--youtube/yt_data_extract/__init__.py2
-rw-r--r--youtube/yt_data_extract/watch_extraction.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/youtube/yt_data_extract/__init__.py b/youtube/yt_data_extract/__init__.py
index 9016810..de1812d 100644
--- a/youtube/yt_data_extract/__init__.py
+++ b/youtube/yt_data_extract/__init__.py
@@ -7,7 +7,7 @@ from .everything_else import (extract_channel_info, extract_search_info,
extract_playlist_metadata, extract_playlist_info, extract_comments_info)
from .watch_extraction import (extract_watch_info, get_caption_url,
- update_with_age_restricted_info, requires_decryption,
+ update_with_new_urls, requires_decryption,
extract_decryption_function, decrypt_signatures, _formats,
update_format_with_type_info, extract_hls_formats,
extract_watch_info_from_html, captions_available)
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: '