From 4da1db9d1ee00e06b9b403dc7ea7ba978788735b Mon Sep 17 00:00:00 2001 From: jakeogh Date: Tue, 23 Apr 2024 20:32:37 -0700 Subject: [PATCH] fix like_count --- yt_dlp/extractor/youtube.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/yt_dlp/extractor/youtube.py b/yt_dlp/extractor/youtube.py index 82d421ad49..1978933d48 100644 --- a/yt_dlp/extractor/youtube.py +++ b/yt_dlp/extractor/youtube.py @@ -17,7 +17,6 @@ import time import traceback import urllib.parse - from .common import InfoExtractor, SearchInfoExtractor from .openload import PhantomJSwrapper from ..compat import functools @@ -3314,7 +3313,7 @@ def _extract_comment(self, view_model, entity, parent=None): info = { 'id': comment_id, 'text': entity_payload['properties']['content']['content'], - 'like_count': entity_payload['toolbar']['likeCountLiked'], + 'like_count': entity_payload['toolbar']['likeCountNotliked'], 'author_id': traverse_obj(entity_payload, ('author', 'channelId', {self.ucid_or_none})), 'author': entity_payload['author']['displayName'], 'author_thumbnail': traverse_obj(entity_payload, ('author', 'avatarThumbnailUrl', {url_or_none})),