Skip to content

Commit

Permalink
Fix for votes
Browse files Browse the repository at this point in the history
  • Loading branch information
egbertbouman committed Apr 23, 2024
1 parent 6afbb2a commit 578445e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube_comment_downloader/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def get_comments_from_url(self, youtube_url, sort_by=SORT_BY_RECENT, language=No
'time': properties['publishedTime'],
'author': author['displayName'],
'channel': author['channelId'],
'votes': toolbar['likeCountNotliked'].strip() or `0`,
'votes': toolbar['likeCountNotliked'].strip() or "0",
'replies': toolbar['replyCount'],
'photo': author['avatarThumbnailUrl'],
'heart': toolbar_state.get('heartState', '') == 'TOOLBAR_HEART_STATE_HEARTED',
Expand Down

0 comments on commit 578445e

Please sign in to comment.