aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/watch.py
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2020-10-21 22:42:07 -0700
committerJames Taylor <user234683@users.noreply.github.com>2020-10-21 22:42:07 -0700
commitf8b6db14800806c132c6ec5c587832c0200ada6e (patch)
tree714b4b253173caa28ee76c10c327f56b02d87881 /youtube/watch.py
parentd3230e8daf6af80f397ec41df2b8a3872b5b9483 (diff)
downloadyt-local-f8b6db14800806c132c6ec5c587832c0200ada6e.tar.lz
yt-local-f8b6db14800806c132c6ec5c587832c0200ada6e.tar.xz
yt-local-f8b6db14800806c132c6ec5c587832c0200ada6e.zip
Redo fix for failure mode 1 in issue #22
Previous fix didn't work. Should work now. The non-embedded player response can still be present but the urls will be missing.
Diffstat (limited to 'youtube/watch.py')
-rw-r--r--youtube/watch.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube/watch.py b/youtube/watch.py
index 8ef9448..11ef9f2 100644
--- a/youtube/watch.py
+++ b/youtube/watch.py
@@ -226,9 +226,9 @@ def extract_info(video_id, use_invidious, playlist_id=None, index=None):
return {'error': 'Failed to parse json response'}
info = yt_data_extract.extract_watch_info(polymer_json)
- # request player if it's missing
+ # request player urls if it's missing
# see https://github.com/user234683/youtube-local/issues/22#issuecomment-706395160
- if info['age_restricted'] or info['player_response_missing']:
+ if info['age_restricted'] or info['player_urls_missing']:
if info['age_restricted']:
print('Age restricted video. Fetching get_video_info page')
else: