From 5d6d5d86011681bbeb71945556c220df44a7fdf9 Mon Sep 17 00:00:00 2001 From: Lauren Liberda Date: Mon, 21 Jun 2021 01:29:07 +0200 Subject: [PATCH] fix comment like count --- webroot/watch.shs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webroot/watch.shs b/webroot/watch.shs index 44667ff..3787c39 100755 --- a/webroot/watch.shs +++ b/webroot/watch.shs @@ -171,7 +171,7 @@ if [[ "${get_data[v]}" ]]; then IFS=$'\n' comment_nick=($(jq -r '.response.continuationContents.itemSectionContinuation.contents[].commentThreadRenderer.comment.commentRenderer.authorText.simpleText' <<< "$comments")) comment_published=($(jq -r '.response.continuationContents.itemSectionContinuation.contents[].commentThreadRenderer.comment.commentRenderer.publishedTimeText.runs[0].text' <<< "$comments")) - comment_likes=($(jq -r '.response.continuationContents.itemSectionContinuation.contents[].commentThreadRenderer.comment.commentRenderer.likeCount' <<< "$comments")) + comment_likes=($(jq -r '.response.continuationContents.itemSectionContinuation.contents[].commentThreadRenderer.comment.commentRenderer.voteCount.simpleText' <<< "$comments")) comment_avatar=($(jq -r '.response.continuationContents.itemSectionContinuation.contents[].commentThreadRenderer.comment.commentRenderer.authorThumbnail.thumbnails[1].url' <<< "$comments")) unset IFS x=$(jq '.response.continuationContents.itemSectionContinuation.contents[].commentThreadRenderer.comment.commentRenderer.contentText.runs | map(.text)' <<< "$comments")