diff options
| author | absidue <48293849+absidue@users.noreply.github.com> | 2024-04-25 21:38:51 +0200 |
|---|---|---|
| committer | absidue <48293849+absidue@users.noreply.github.com> | 2024-05-14 19:02:41 +0200 |
| commit | 57e606cb43d43c627708f0538eddcde3b0f580a0 (patch) | |
| tree | 6817a7200b2c9320efd1776338555ddc60852392 /src | |
| parent | f57aac5815e20bed2b495cb1994f4d8d50654b61 (diff) | |
| download | invidious-57e606cb43d43c627708f0538eddcde3b0f580a0.tar.gz invidious-57e606cb43d43c627708f0538eddcde3b0f580a0.tar.bz2 invidious-57e606cb43d43c627708f0538eddcde3b0f580a0.zip | |
Add back missing resolution field
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/jsonify/api_v1/video_json.cr | 2 |
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" |
