Skip to content

Commit 96180e8

Browse files
committed
Remove dislikes from YouTube output
1 parent 094b804 commit 96180e8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

youtube/src/main/kotlin/by/jprof/telegram/bot/youtube/YouTubeUpdateProcessor.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ class YouTubeUpdateProcessor(
9898

9999
val views = videoDetails.statistics.viewCount
100100
val likes = videoDetails.statistics.likeCount
101-
val dislikes = videoDetails.statistics.dislikeCount
102101
val rawDescription = if (snippet.description.length > ACCEPTED_DISPLAY_LEN) {
103102
snippet.description.substring(IntRange(0, ACCEPTED_DISPLAY_LEN)) + ""
104103
} else {
@@ -107,7 +106,7 @@ class YouTubeUpdateProcessor(
107106
val description = rawDescription.escapeMarkdownV2Common()
108107
val videoText = "Cast your vote for: ${snippet.title}".boldMarkdownV2() +
109108
"\n\n```\n$description\n\n```" +
110-
"Views: $views / Likes: $likes / Dislikes: $dislikes".boldMarkdownV2() //trim indent have strange layout
109+
"Views: $views / Likes: $likes".boldMarkdownV2() //trim indent have strange layout
111110
val votesId = video.toVotesID()
112111
val votes = votesDAO.get(votesId) ?: votesConstructor(votesId)
113112

0 commit comments

Comments
 (0)