mirror of
https://gitea.invidious.io/iv-org/invidious.git
synced 2024-08-15 00:53:41 +00:00
Community: Restore thumbnail qualities array
This commit is contained in:
parent
a6d21cb211
commit
b66a5c40a9
1 changed files with 2 additions and 1 deletions
|
@ -77,9 +77,10 @@ def fetch_channel_community(ucid, continuation, locale, format, thin_mode)
|
|||
json.field "author", author
|
||||
json.field "authorThumbnails" do
|
||||
json.array do
|
||||
qualities = {32, 48, 76, 100, 176, 512}
|
||||
author_thumbnail = post["authorThumbnail"]["thumbnails"].as_a[0]["url"].as_s
|
||||
|
||||
IMAGE_QUALITIES.each do |quality|
|
||||
qualities.each do |quality|
|
||||
json.object do
|
||||
json.field "url", author_thumbnail.gsub(/s\d+-/, "s#{quality}-")
|
||||
json.field "width", quality
|
||||
|
|
Loading…
Reference in a new issue