summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/invidious/jsonify/api_v1/video_json.cr2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/invidious/jsonify/api_v1/video_json.cr b/src/invidious/jsonify/api_v1/video_json.cr
index 7f17f35a..6e8c3a72 100644
--- a/src/invidious/jsonify/api_v1/video_json.cr
+++ b/src/invidious/jsonify/api_v1/video_json.cr
@@ -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"