0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-26 02:55:17 +00:00

[extractor/youtube] Fix comments' is_favorited (#7390)

Authored by: bbilly1
Closes #7389
This commit is contained in:
Simon 2023-06-23 01:08:42 +07:00 committed by GitHub
parent de4cf77ec1
commit 89bed01374
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3356,7 +3356,7 @@ def _extract_comment(self, comment_renderer, parent=None):
info['author_is_uploader'] = author_is_uploader
comment_abr = traverse_obj(
comment_renderer, ('actionsButtons', 'commentActionButtonsRenderer'), expected_type=dict)
comment_renderer, ('actionButtons', 'commentActionButtonsRenderer'), expected_type=dict)
if comment_abr is not None:
info['is_favorited'] = 'creatorHeart' in comment_abr