Skip to content

Invidious is an alternative front-end to YouTube

Don't sort ad_slots

Omar Rothe8349ae46b4e
diff --git a/src/invidious.cr b/src/invidious.cr
index bab57808..5437c356 100644
--- a/src/invidious.cr
+++ b/src/invidious.cr
@@ -293,7 +293,6 @@ get "/watch" do |env|
if video.info["ad_slots"]?
ad_slots = video.info["ad_slots"].split(",")
- ad_slots.sort_by! { |a| a.to_i }
ad_slots = ad_slots.join(", ")
end