Add back missing resolution field

pull/4586/head
absidue 2024-04-25 21:38:51 +02:00
rodzic f57aac5815
commit 57e606cb43
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -125,6 +125,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"
@ -179,6 +180,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"