fix(invidious): fix float formating (#5841)
This commit is contained in:
@@ -25,7 +25,7 @@ sources:
|
|||||||
- https://github.com/truecharts/charts/tree/master/charts/incubator/invidious
|
- https://github.com/truecharts/charts/tree/master/charts/incubator/invidious
|
||||||
- https://github.com/iv-org/invidious
|
- https://github.com/iv-org/invidious
|
||||||
- https://docs.invidious.io/installation/#docker
|
- https://docs.invidious.io/installation/#docker
|
||||||
version: 1.0.5
|
version: 1.0.6
|
||||||
annotations:
|
annotations:
|
||||||
truecharts.org/catagories: |
|
truecharts.org/catagories: |
|
||||||
- media
|
- media
|
||||||
|
|||||||
@@ -4,10 +4,10 @@
|
|||||||
Accepted formats are:
|
Accepted formats are:
|
||||||
|
|
||||||
- Integers (eg `1`, `2`)
|
- Integers (eg `1`, `2`)
|
||||||
- Floats (eg `1.25`, `1.50`)
|
- Floats (eg `1.25`, `1.50`, `2.5`)
|
||||||
|
|
||||||
Regex used to match those: `^[0-9]+(\.[0-9]*)?$`
|
Regex used to match those: `^[0-9]+(\.[0-9]{1,2})?$`
|
||||||
You can try live [here](https://regex101.com/r/jnZ19W/1)
|
You can try live [here](https://regex101.com/r/4HI4wW/1)
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -1113,7 +1113,7 @@ questions:
|
|||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
valid_chars: '^[0-9]+(\.[0-9]*)?$'
|
valid_chars: '^[0-9]+(\.[0-9]{1,2})?$'
|
||||||
default: "1.00"
|
default: "1.00"
|
||||||
- variable: volume
|
- variable: volume
|
||||||
label: Volume
|
label: Volume
|
||||||
|
|||||||
@@ -164,11 +164,7 @@ stringData:
|
|||||||
# Video Playback Settigns
|
# Video Playback Settigns
|
||||||
quality: {{ $vVidPlay.quality }}
|
quality: {{ $vVidPlay.quality }}
|
||||||
quality_dash: {{ $vVidPlay.quality_dash }}
|
quality_dash: {{ $vVidPlay.quality_dash }}
|
||||||
{{- if not (contains "." (toString $vVidPlay.speed)) }}
|
speed: {{ printf "%.2f" ($vVidPlay.speed | float64) }}
|
||||||
speed: {{ printf "%s.00" (toString $vVidPlay.speed) }}
|
|
||||||
{{- else }}
|
|
||||||
speed: {{ $vVidPlay.speed | float64 }}
|
|
||||||
{{- end }}
|
|
||||||
volume: {{ $vVidPlay.volume }}
|
volume: {{ $vVidPlay.volume }}
|
||||||
vr_mode: {{ $vVidPlay.vr_mode }}
|
vr_mode: {{ $vVidPlay.vr_mode }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user