diff options
author | James Taylor <user234683@users.noreply.github.com> | 2019-12-17 21:06:06 -0800 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2019-12-17 21:06:06 -0800 |
commit | e98a1965d2cfca725d8d30a4807e816036b60c0b (patch) | |
tree | ee5a979267f65fc60bf7f2da3de5784064cd19f6 | |
parent | 45a4ab5acedd2fd7531604d3e817e0742a036c4a (diff) | |
download | yt-local-e98a1965d2cfca725d8d30a4807e816036b60c0b.tar.lz yt-local-e98a1965d2cfca725d8d30a4807e816036b60c0b.tar.xz yt-local-e98a1965d2cfca725d8d30a4807e816036b60c0b.zip |
Extraction: Fix mistake with age-restriction detection
-rw-r--r-- | youtube/yt_data_extract.py | 2 |
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') |