mirror of
https://github.com/iv-org/invidious.git
synced 2025-07-14 09:28:32 +00:00
Update src/invidious/routes/watch.cr
Co-authored-by: Samantaz Fox <coding@samantaz.fr>
This commit is contained in:
parent
b34c79a6ea
commit
136bea11df
@ -52,11 +52,7 @@ module Invidious::Routes::Watch
|
||||
env.params.query.delete_all("listen")
|
||||
|
||||
begin
|
||||
if params.quality == "hls"
|
||||
video = get_video(id, region: params.region, force_hls: true)
|
||||
else
|
||||
video = get_video(id, region: params.region)
|
||||
end
|
||||
video = get_video(id, region: params.region, force_hls: (params.quality == "hls"))
|
||||
rescue ex : NotFoundException
|
||||
LOGGER.error("get_video not found: #{id} : #{ex.message}")
|
||||
return error_template(404, ex)
|
||||
|
Loading…
Reference in New Issue
Block a user