mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Fix API giving ytimg instead of instance URLs for thumbnails
This commit is contained in:
parent
2c1cf42994
commit
87c25f83a4
1 changed files with 9 additions and 9 deletions
|
@ -1150,15 +1150,15 @@ end
|
||||||
|
|
||||||
def build_thumbnails(id)
|
def build_thumbnails(id)
|
||||||
return {
|
return {
|
||||||
{name: "maxres", host: "#{HOST_URL}", url: "maxres", height: 720, width: 1280},
|
{host: HOST_URL, height: 720, width: 1280, name: "maxres", url: "maxres"},
|
||||||
{name: "maxresdefault", host: "https://i.ytimg.com", url: "maxresdefault", height: 720, width: 1280},
|
{host: HOST_URL, height: 720, width: 1280, name: "maxresdefault", url: "maxresdefault"},
|
||||||
{name: "sddefault", host: "https://i.ytimg.com", url: "sddefault", height: 480, width: 640},
|
{host: HOST_URL, height: 480, width: 640, name: "sddefault", url: "sddefault"},
|
||||||
{name: "high", host: "https://i.ytimg.com", url: "hqdefault", height: 360, width: 480},
|
{host: HOST_URL, height: 360, width: 480, name: "high", url: "hqdefault"},
|
||||||
{name: "medium", host: "https://i.ytimg.com", url: "mqdefault", height: 180, width: 320},
|
{host: HOST_URL, height: 180, width: 320, name: "medium", url: "mqdefault"},
|
||||||
{name: "default", host: "https://i.ytimg.com", url: "default", height: 90, width: 120},
|
{host: HOST_URL, height: 90, width: 120, name: "default", url: "default"},
|
||||||
{name: "start", host: "https://i.ytimg.com", url: "1", height: 90, width: 120},
|
{host: HOST_URL, height: 90, width: 120, name: "start", url: "1"},
|
||||||
{name: "middle", host: "https://i.ytimg.com", url: "2", height: 90, width: 120},
|
{host: HOST_URL, height: 90, width: 120, name: "middle", url: "2"},
|
||||||
{name: "end", host: "https://i.ytimg.com", url: "3", height: 90, width: 120},
|
{host: HOST_URL, height: 90, width: 120, name: "end", url: "3"},
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue