videos: remove unused 'VideoRedirect' exception
parent
87a5d70062
commit
d659a451d6
@ -0,0 +1,18 @@
|
||||
require "json"
|
||||
|
||||
module Invidious::JSONify::APIv1
|
||||
extend self
|
||||
|
||||
def thumbnails(json : JSON::Builder, id : String)
|
||||
json.array do
|
||||
build_thumbnails(id).each do |thumbnail|
|
||||
json.object do
|
||||
json.field "quality", thumbnail[:name]
|
||||
json.field "url", "#{thumbnail[:host]}/vi/#{id}/#{thumbnail["url"]}.jpg"
|
||||
json.field "width", thumbnail[:width]
|
||||
json.field "height", thumbnail[:height]
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue