From: Chocobozzz Date: Wed, 29 Jan 2020 13:22:32 +0000 (+0100) Subject: Fix wrong audio only resolution label for hls X-Git-Tag: v2.1.0~7 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8ff604c7e300eec5c0b29644292d6399521a1930;p=oweals%2Fpeertube.git Fix wrong audio only resolution label for hls --- diff --git a/client/src/assets/player/videojs-components/resolution-menu-button.ts b/client/src/assets/player/videojs-components/resolution-menu-button.ts index 86be03af7..2de3ece19 100644 --- a/client/src/assets/player/videojs-components/resolution-menu-button.ts +++ b/client/src/assets/player/videojs-components/resolution-menu-button.ts @@ -75,7 +75,7 @@ class ResolutionMenuButton extends MenuButton { // Skip auto resolution, we'll add it ourselves if (d.id === -1) continue - const label = d.id === 0 + const label = d.label === '0p' ? this.player.localize('Audio-only') : d.label