summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorabsidue <48293849+absidue@users.noreply.github.com>2024-04-21 14:58:12 +0200
committerabsidue <48293849+absidue@users.noreply.github.com>2024-05-14 19:02:41 +0200
commitf57aac5815e20bed2b495cb1994f4d8d50654b61 (patch)
tree844af4e421c18bda311a5dc0953369b57c0744f5 /src
parent71a821a7e65de56ba4816bb07380cebf9914c00a (diff)
downloadinvidious-f57aac5815e20bed2b495cb1994f4d8d50654b61.tar.gz
invidious-f57aac5815e20bed2b495cb1994f4d8d50654b61.tar.bz2
invidious-f57aac5815e20bed2b495cb1994f4d8d50654b61.zip
Fix the missing `p` in the quality labels.
Co-authored-by: Samantaz Fox <coding@samantaz.fr>
Diffstat (limited to 'src')
-rw-r--r--src/invidious/jsonify/api_v1/video_json.cr4
1 files changed, 2 insertions, 2 deletions
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