mirror of
https://github.com/imputnet/cobalt.git
synced 2025-07-17 18:58:33 +00:00
web/settings/audio: show bitrate selection as disabled when not applicable
This commit is contained in:
parent
c2d7e1df12
commit
fea07b9649
@ -50,7 +50,7 @@
|
||||
|
||||
"audio.bitrate": "audio bitrate",
|
||||
"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 only applies to audio conversion into lossy audio formats. 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.title": "use browser language for dubbed videos",
|
||||
|
@ -7,6 +7,7 @@
|
||||
import Switcher from "$components/buttons/Switcher.svelte";
|
||||
import SettingsButton from "$components/buttons/SettingsButton.svelte";
|
||||
import SettingsToggle from "$components/buttons/SettingsToggle.svelte";
|
||||
import settings from "$lib/state/settings"
|
||||
</script>
|
||||
|
||||
<SettingsCategory sectionId="format" title={$t("settings.audio.format")}>
|
||||
@ -23,7 +24,7 @@
|
||||
</Switcher>
|
||||
</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")}>
|
||||
{#each audioBitrateOptions as value}
|
||||
<SettingsButton
|
||||
|
Loading…
Reference in New Issue
Block a user