Fix downloads

The `itag` is now converted to a number, matching the `itag` of
`Video.adaptive_fmts` and `Video.fmt_stream`.
このコミットが含まれているのは:
saltycrys 2021-01-09 20:40:01 +01:00
コミット c81ca187f8
1個のファイルの変更1行の追加1行の削除

ファイルの表示

@ -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