aboutsummaryrefslogtreecommitdiffstats
path: root/youtube
diff options
context:
space:
mode:
Diffstat (limited to 'youtube')
-rw-r--r--youtube/yt_data_extract/watch_extraction.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube/yt_data_extract/watch_extraction.py b/youtube/yt_data_extract/watch_extraction.py
index 193b84b..8fb0af4 100644
--- a/youtube/yt_data_extract/watch_extraction.py
+++ b/youtube/yt_data_extract/watch_extraction.py
@@ -188,6 +188,8 @@ def _extract_watch_info_mobile(top_level):
info['playlist']['current_index'] = playlist.get('currentIndex')
info['playlist']['items'] = [
extract_item_info(i) for i in playlist.get('contents', ())]
+ else:
+ info['playlist'] = None
# Holds the visible video info. It is inside singleColumnWatchNextResults
# but use our convenience function instead
@@ -264,6 +266,7 @@ def _extract_watch_info_desktop(top_level):
'comments_disabled': None,
'allowed_countries': [],
'limited_state': None,
+ 'playlist': None,
}
video_info = {}