mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-19 06:39:16 +00:00
fix like_count
This commit is contained in:
parent
2ef6563fb1
commit
4da1db9d1e
|
@ -17,7 +17,6 @@
|
||||||
import time
|
import time
|
||||||
import traceback
|
import traceback
|
||||||
import urllib.parse
|
import urllib.parse
|
||||||
|
|
||||||
from .common import InfoExtractor, SearchInfoExtractor
|
from .common import InfoExtractor, SearchInfoExtractor
|
||||||
from .openload import PhantomJSwrapper
|
from .openload import PhantomJSwrapper
|
||||||
from ..compat import functools
|
from ..compat import functools
|
||||||
|
@ -3314,7 +3313,7 @@ def _extract_comment(self, view_model, entity, parent=None):
|
||||||
info = {
|
info = {
|
||||||
'id': comment_id,
|
'id': comment_id,
|
||||||
'text': entity_payload['properties']['content']['content'],
|
'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_id': traverse_obj(entity_payload, ('author', 'channelId', {self.ucid_or_none})),
|
||||||
'author': entity_payload['author']['displayName'],
|
'author': entity_payload['author']['displayName'],
|
||||||
'author_thumbnail': traverse_obj(entity_payload, ('author', 'avatarThumbnailUrl', {url_or_none})),
|
'author_thumbnail': traverse_obj(entity_payload, ('author', 'avatarThumbnailUrl', {url_or_none})),
|
||||||
|
|
Loading…
Reference in a new issue