mirror of
https://github.com/iv-org/invidious.git
synced 2024-10-01 01:25:56 -04: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
|
||||
chapter.thumbnails.each do |thumbnail|
|
||||
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 "height", thumbnail["height"]
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user