videos: remove unused 'VideoRedirect' exception

This commit is contained in:
Samantaz Fox
2022-08-23 19:04:08 +02:00
parent 87a5d70062
commit d659a451d6
7 changed files with 18 additions and 35 deletions

View File

@@ -319,13 +319,6 @@ struct Video
getset_bool isUpcoming
end
class VideoRedirect < Exception
property video_id : String
def initialize(@video_id)
end
end
def get_video(id, refresh = true, region = nil, force_refresh = false)
if (video = Invidious::Database::Videos.select(id)) && !region
# If record was last updated over 10 minutes ago, or video has since premiered,