mirror of
https://github.com/iv-org/invidious.git
synced 2025-07-19 20:08:29 +00:00
Use proxy url for chapter thumbnails in JSON API
This commit is contained in:
parent
c7e046f903
commit
f4b2251bdf
@ -98,7 +98,7 @@ module Invidious::Videos::Chapters
|
|||||||
json.array do
|
json.array do
|
||||||
chapter.thumbnails.each do |thumbnail|
|
chapter.thumbnails.each do |thumbnail|
|
||||||
json.object do
|
json.object do
|
||||||
json.field "url", thumbnail["url"]
|
json.field "url", URI.parse(thumbnail["url"].as(String)).request_target
|
||||||
json.field "width", thumbnail["width"]
|
json.field "width", thumbnail["width"]
|
||||||
json.field "height", thumbnail["height"]
|
json.field "height", thumbnail["height"]
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user