mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
parent
f0ff9979c6
commit
9752433221
1 changed files with 3 additions and 2 deletions
|
@ -2002,14 +2002,15 @@ def _extract_comment(self, comment_renderer, parent=None):
|
|||
lambda x: x['authorThumbnail']['thumbnails'][-1]['url'], compat_str)
|
||||
|
||||
author_is_uploader = try_get(comment_renderer, lambda x: x['authorIsChannelOwner'], bool)
|
||||
is_liked = try_get(comment_renderer, lambda x: x['isLiked'], bool)
|
||||
is_favorited = 'creatorHeart' in (try_get(
|
||||
comment_renderer, lambda x: x['actionButtons']['commentActionButtonsRenderer'], dict) or {})
|
||||
return {
|
||||
'id': comment_id,
|
||||
'text': text,
|
||||
'timestamp': timestamp,
|
||||
'time_text': time_text,
|
||||
'like_count': votes,
|
||||
'is_favorited': is_liked,
|
||||
'is_favorited': is_favorited,
|
||||
'author': author,
|
||||
'author_id': author_id,
|
||||
'author_thumbnail': author_thumbnail,
|
||||
|
|
Loading…
Reference in a new issue