Invidious is an alternative front-end to YouTube
parse votes as number
ChunkyProgrammer473148082124
diff --git a/src/invidious/channels/community.cr b/src/invidious/channels/community.crindex 9f9f3fde..87659c47 100644--- a/src/invidious/channels/community.cr+++ b/src/invidious/channels/community.cr@@ -191,7 +191,7 @@ def fetch_channel_community(ucid, continuation, locale, format, thin_mode)when .has_key?("pollRenderer")attachment = attachment["pollRenderer"]json.field "type", "poll"- json.field "totalVotes", attachment["totalVotes"]["simpleText"].as_s+ json.field "totalVotes", short_text_to_number(attachment["totalVotes"]["simpleText"].as_s.split(" ")[0])json.field "choices" dojson.array doattachment["choices"].as_a.each do |choice|