mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-14 20:30:06 +00:00
web/settings/audio: disable bitrate section when not applicable (#802)
This commit is contained in:
parent
4ed2df64b3
commit
4156206f35
2 changed files with 7 additions and 2 deletions
|
@ -50,7 +50,7 @@
|
||||||
|
|
||||||
"audio.bitrate": "audio bitrate",
|
"audio.bitrate": "audio bitrate",
|
||||||
"audio.bitrate.kbps": "kb/s",
|
"audio.bitrate.kbps": "kb/s",
|
||||||
"audio.bitrate.description": "bitrate applies only to audio conversion. cobalt can't improve the source audio quality, so choosing a bitrate over 128kbps may inflate the file size with no audible difference. perceived quality may vary by format.",
|
"audio.bitrate.description": "bitrate is applied only when converting audio to a lossy format. cobalt can't improve the source audio quality, so choosing a bitrate over 128kbps may inflate the file size with no audible difference. perceived quality may vary by format.",
|
||||||
|
|
||||||
"audio.youtube.dub": "youtube",
|
"audio.youtube.dub": "youtube",
|
||||||
"audio.youtube.dub.title": "use browser language for dubbed videos",
|
"audio.youtube.dub.title": "use browser language for dubbed videos",
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
import settings from "$lib/state/settings";
|
||||||
import { t } from "$lib/i18n/translations";
|
import { t } from "$lib/i18n/translations";
|
||||||
|
|
||||||
import { audioFormatOptions, audioBitrateOptions } from "$lib/types/settings";
|
import { audioFormatOptions, audioBitrateOptions } from "$lib/types/settings";
|
||||||
|
@ -23,7 +24,11 @@
|
||||||
</Switcher>
|
</Switcher>
|
||||||
</SettingsCategory>
|
</SettingsCategory>
|
||||||
|
|
||||||
<SettingsCategory sectionId="bitrate" title={$t("settings.audio.bitrate")}>
|
<SettingsCategory
|
||||||
|
sectionId="bitrate"
|
||||||
|
title={$t("settings.audio.bitrate")}
|
||||||
|
disabled={["wav", "best"].includes($settings.save.audioFormat)}
|
||||||
|
>
|
||||||
<Switcher big={true} description={$t("settings.audio.bitrate.description")}>
|
<Switcher big={true} description={$t("settings.audio.bitrate.description")}>
|
||||||
{#each audioBitrateOptions as value}
|
{#each audioBitrateOptions as value}
|
||||||
<SettingsButton
|
<SettingsButton
|
||||||
|
|
Loading…
Reference in a new issue