Skip to content

Invidious is an alternative front-end to YouTube

Fix the missing `p` in the quality labels.

absiduef57aac5815e2
diff --git a/src/invidious/jsonify/api_v1/video_json.cr b/src/invidious/jsonify/api_v1/video_json.cr
index 8c1f5c3c..7f17f35a 100644
--- a/src/invidious/jsonify/api_v1/video_json.cr
+++ b/src/invidious/jsonify/api_v1/video_json.cr
@@ -126,7 +126,7 @@ module Invidious::JSONify::APIv1
if height && width
json.field "size", "#{width}x#{height}"
- quality_label = "#{width > height ? height : width}"
+ quality_label = "#{width > height ? height : width}p"
if fps && fps > 30
quality_label += fps.to_s
@@ -180,7 +180,7 @@ module Invidious::JSONify::APIv1
if height && width
json.field "size", "#{width}x#{height}"
- quality_label = "#{width > height ? height : width}"
+ quality_label = "#{width > height ? height : width}p"
if fps && fps > 30
quality_label += fps.to_s