From 0b4bba97d1db45c16f02215d5ce8ee9273c714a3 Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Sun, 25 Dec 2022 16:11:37 +0200 Subject: [PATCH] fix(invidious): fix float rendering (#5783) Signed-off-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> --- charts/incubator/invidious/Chart.yaml | 2 +- charts/incubator/invidious/templates/_config.tpl | 4 ++++ charts/incubator/invidious/values.yaml | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/charts/incubator/invidious/Chart.yaml b/charts/incubator/invidious/Chart.yaml index ff3f04f91ab..ed0695a3272 100644 --- a/charts/incubator/invidious/Chart.yaml +++ b/charts/incubator/invidious/Chart.yaml @@ -25,7 +25,7 @@ sources: - https://github.com/truecharts/charts/tree/master/charts/incubator/invidious - https://github.com/iv-org/invidious - https://docs.invidious.io/installation/#docker -version: 1.0.1 +version: 1.0.2 annotations: truecharts.org/catagories: | - media diff --git a/charts/incubator/invidious/templates/_config.tpl b/charts/incubator/invidious/templates/_config.tpl index 9631356ecf9..8762c787ef4 100644 --- a/charts/incubator/invidious/templates/_config.tpl +++ b/charts/incubator/invidious/templates/_config.tpl @@ -164,7 +164,11 @@ stringData: # Video Playback Settigns quality: {{ $vVidPlay.quality }} quality_dash: {{ $vVidPlay.quality_dash }} + {{- if not (contains "." (toString $vVidPlay.speed)) }} + speed: {{ printf "%s.00" (toString $vVidPlay.speed) }} + {{- else }} speed: {{ $vVidPlay.speed | float64 }} + {{- end }} volume: {{ $vVidPlay.volume }} vr_mode: {{ $vVidPlay.vr_mode }} diff --git a/charts/incubator/invidious/values.yaml b/charts/incubator/invidious/values.yaml index 97e281b3b15..3103764034a 100644 --- a/charts/incubator/invidious/values.yaml +++ b/charts/incubator/invidious/values.yaml @@ -91,7 +91,7 @@ invidious: video_playback_settings: quality: hd720 quality_dash: auto - speed: 1.25 + speed: 1.00 volume: 100 vr_mode: true subscription_feed: