Clean useless database arguments (4/5)

This commit is contained in:
Samantaz Fox
2021-12-07 02:55:43 +01:00
parent 40ed4a0506
commit d74873fed1
11 changed files with 19 additions and 19 deletions

View File

@@ -263,7 +263,7 @@ module Invidious::Routes::VideoPlayback
haltf env, status_code: 400, response: "TESTING"
end
video = get_video(id, PG_DB, region: region)
video = get_video(id, region: region)
fmt = video.fmt_stream.find(nil) { |f| f["itag"].as_i == itag } || video.adaptive_fmts.find(nil) { |f| f["itag"].as_i == itag }
url = fmt.try &.["url"]?.try &.as_s