+ if self._downloader.params.get('getcomments', False):
+ def get_comments():
+ comments = self._get_all_comment_pages(video_id)
+ return {
+ 'comments': comments,
+ 'comment_count': len(comments)
+ }
+
+ top_level_info['__post_extractor'] = get_comments