aboutsummaryrefslogtreecommitdiffstats
path: root/youtube
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2019-12-17 21:06:06 -0800
committerJames Taylor <user234683@users.noreply.github.com>2019-12-17 21:06:06 -0800
commite98a1965d2cfca725d8d30a4807e816036b60c0b (patch)
treeee5a979267f65fc60bf7f2da3de5784064cd19f6 /youtube
parent45a4ab5acedd2fd7531604d3e817e0742a036c4a (diff)
downloadyt-local-e98a1965d2cfca725d8d30a4807e816036b60c0b.tar.lz
yt-local-e98a1965d2cfca725d8d30a4807e816036b60c0b.tar.xz
yt-local-e98a1965d2cfca725d8d30a4807e816036b60c0b.zip
Extraction: Fix mistake with age-restriction detection
Diffstat (limited to 'youtube')
-rw-r--r--youtube/yt_data_extract.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube/yt_data_extract.py b/youtube/yt_data_extract.py
index c7a6604..653a79f 100644
--- a/youtube/yt_data_extract.py
+++ b/youtube/yt_data_extract.py
@@ -1185,7 +1185,7 @@ def extract_watch_info(polymer_json):
extract_playability_error(info, player_response)
# check age-restriction
- info['age_restricted'] = (info['playability_status'] == 'LOGIN_REQUIRED' and info['playability_reason'] and ' age' in info['playability_reason'])
+ info['age_restricted'] = (info['playability_status'] == 'LOGIN_REQUIRED' and info['playability_error'] and ' age' in info['playability_error'])
# base_js (for decryption of signatures)
info['base_js'] = default_multi_get(top_level, 'player', 'assets', 'js')