Add back missing resolution field

This commit is contained in:
absidue 2024-04-25 21:38:51 +02:00
parent 11a9fe3faf
commit 6c0b8cf908
1 changed files with 2 additions and 0 deletions

View File

@ -124,6 +124,7 @@ module Invidious::JSONify::APIv1
if height && width
json.field "size", "#{width}x#{height}"
json.field "resolution" "#{height}p"
quality_label = "#{width > height ? height : width}p"
@ -176,6 +177,7 @@ module Invidious::JSONify::APIv1
if height && width
json.field "size", "#{width}x#{height}"
json.field "resolution" "#{height}p"
quality_label = "#{width > height ? height : width}p"