Skip to content

Invidious is an alternative front-end to YouTube

Fix downloads

saltycrysc81ca187f8b3
diff --git a/src/invidious.cr b/src/invidious.cr
index 800ea956..5235d826 100644
--- a/src/invidious.cr
+++ b/src/invidious.cr
@@ -3372,7 +3372,7 @@ get "/latest_version" do |env|
env.redirect "/api/v1/captions/#{id}?label=#{label}&title=#{title}"
next
else
- itag = download_widget["itag"].as_s
+ itag = download_widget["itag"].as_s.to_i
local = "true"
end
end