]> jfr.im git - yt-dlp.git/commitdiff
[extractor/youtube] Fix comments' `is_favorited` (#7390)
authorSimon <redacted>
Thu, 22 Jun 2023 18:08:42 +0000 (01:08 +0700)
committerGitHub <redacted>
Thu, 22 Jun 2023 18:08:42 +0000 (23:38 +0530)
Authored by: bbilly1
Closes #7389

yt_dlp/extractor/youtube.py

index f1c8df14102140bd6b15ab60643bfcd38db56438..a0d0a601ae781d29ec0c97fc37916797647f4f72 100644 (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