aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/yt_data_extract
diff options
context:
space:
mode:
Diffstat (limited to 'youtube/yt_data_extract')
-rw-r--r--youtube/yt_data_extract/watch_extraction.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/youtube/yt_data_extract/watch_extraction.py b/youtube/yt_data_extract/watch_extraction.py
index 5e57c15..12a3bf8 100644
--- a/youtube/yt_data_extract/watch_extraction.py
+++ b/youtube/yt_data_extract/watch_extraction.py
@@ -478,10 +478,6 @@ def extract_watch_info(polymer_json):
else:
embedded_player_response = {}
- # see https://github.com/user234683/youtube-local/issues/22#issuecomment-706395160
- info['player_response_missing'] = not (
- player_response or embedded_player_response)
-
# captions
info['automatic_caption_languages'] = []
info['manual_caption_languages'] = []
@@ -514,6 +510,10 @@ def extract_watch_info(polymer_json):
if not info['formats']:
_extract_formats(info, player_response)
+ # see https://github.com/user234683/youtube-local/issues/22#issuecomment-706395160
+ info['player_urls_missing'] = (
+ not info['formats'] and not embedded_player_response)
+
# playability errors
_extract_playability_error(info, player_response)