mirror of
https://github.com/iv-org/invidious.git
synced 2025-02-25 00:50:03 -05:00
Use proxy url for chapter thumbnails in JSON API
This commit is contained in:
parent
2dc17d7409
commit
310825997f
@ -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…
x
Reference in New Issue
Block a user