File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
youtube/src/main/kotlin/by/jprof/telegram/bot/youtube Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments