fix wrong function

This commit is contained in:
Fijxu 2026-09-14 17:43:58 -03:00
parent 4f8e8f2f0c
commit 9199271cfd
No known key found for this signature in database
GPG Key ID: 32C1DDF333EDA6A4

View File

@ -269,7 +269,7 @@ module Invidious::Routes::VideoPlayback
# Sanity checks # Sanity checks
unless id && validate_video_id(id) unless id && validate_video_id(id)
return error_json(400, InvalidVideoID.new(id)) return error_template(400, InvalidVideoID.new(id))
end end
if !itag.nil? && (itag <= 0 || itag >= 1000) if !itag.nil? && (itag <= 0 || itag >= 1000)