diff options
author | James Taylor <user234683@users.noreply.github.com> | 2020-02-01 15:09:37 -0800 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2020-02-01 15:09:37 -0800 |
commit | 7c2736aa26cb1700297c9fcd6e6ffa5516243a92 (patch) | |
tree | fd7fe697484ade8a86eeeecdec04a282d3e77aaa /youtube/yt_data_extract | |
parent | e364927f8374577c3ecaf7ccb365382aa525f913 (diff) | |
download | yt-local-7c2736aa26cb1700297c9fcd6e6ffa5516243a92.tar.lz yt-local-7c2736aa26cb1700297c9fcd6e6ffa5516243a92.tar.xz yt-local-7c2736aa26cb1700297c9fcd6e6ffa5516243a92.zip |
Check for 403 errors and fallback on Invidious
403 errors on the video urls happen typically when a video has copyrighted content or was livestreamed originally. They appear to not happen (or at least happen less frequently) if the Tor exit node used ipv6, however.
Diffstat (limited to 'youtube/yt_data_extract')
-rw-r--r-- | youtube/yt_data_extract/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube/yt_data_extract/__init__.py b/youtube/yt_data_extract/__init__.py index 898141e..3378b8d 100644 --- a/youtube/yt_data_extract/__init__.py +++ b/youtube/yt_data_extract/__init__.py @@ -8,4 +8,5 @@ from .everything_else import (extract_channel_info, extract_search_info, from .watch_extraction import (extract_watch_info, get_caption_url, update_with_age_restricted_info, requires_decryption, - extract_decryption_function, decrypt_signatures) + extract_decryption_function, decrypt_signatures, _formats, + update_format_with_type_info) |