diff options
| author | saltycrys <73420320+saltycrys@users.noreply.github.com> | 2021-01-09 20:40:01 +0100 |
|---|---|---|
| committer | saltycrys <73420320+saltycrys@users.noreply.github.com> | 2021-01-09 20:40:01 +0100 |
| commit | c81ca187f8b31a04b1027c63fef99711cbda0556 (patch) | |
| tree | d923a415b794b1627b938b6ebc179768e5631fb0 /src | |
| parent | e254d2de8ed9e895b27a6d93f2f67ee1544ad037 (diff) | |
| download | invidious-c81ca187f8b31a04b1027c63fef99711cbda0556.tar.gz invidious-c81ca187f8b31a04b1027c63fef99711cbda0556.tar.bz2 invidious-c81ca187f8b31a04b1027c63fef99711cbda0556.zip | |
Fix downloads
The `itag` is now converted to a number, matching the `itag` of
`Video.adaptive_fmts` and `Video.fmt_stream`.
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious.cr | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
