Skip to content

Invidious is an alternative front-end to YouTube

Clean up argument creation

Omar Roth42df0df5a027
diff --git a/src/invidious.cr b/src/invidious.cr
index b54630fd..b7bbc5af 100644
--- a/src/invidious.cr
+++ b/src/invidious.cr
@@ -118,9 +118,9 @@ spawn do
client = get_client(pool)
args = [] of String
- 1..(top.size - 1).times { |i| args << "($#{i + 1}), " }
- args << "($#{top.size}) "
+ (1..top.size).each { |i| args << "($#{i})," }
args = args.join("")
+ args = args.chomp(",")
videos = [] of Video