2024-06-24 19:05:51 +02:00
|
|
|
<script lang="ts">
|
|
|
|
import SettingsCategory from "$components/settings/SettingsCategory.svelte";
|
|
|
|
import Switcher from "$components/buttons/Switcher.svelte";
|
|
|
|
import SettingsButton from "$components/buttons/SettingsButton.svelte";
|
2024-06-29 18:51:24 +02:00
|
|
|
import SettingsToggle from "$components/buttons/SettingsToggle.svelte";
|
2024-06-24 19:05:51 +02:00
|
|
|
|
|
|
|
import { audioFormatOptions } from "$lib/types/settings";
|
|
|
|
|
|
|
|
const audioDescription = `cobalt converts every format but "best", therefore all formats but "best" will be lossy.`;
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<SettingsCategory
|
|
|
|
title="preferred audio format"
|
|
|
|
description="{audioDescription}"
|
|
|
|
>
|
|
|
|
<Switcher big={true}>
|
|
|
|
{#each audioFormatOptions as value}
|
|
|
|
<SettingsButton settingContext="save" settingId="audioFormat" settingValue={value}>
|
|
|
|
{value}
|
|
|
|
</SettingsButton>
|
|
|
|
{/each}
|
|
|
|
</Switcher>
|
|
|
|
|
|
|
|
</SettingsCategory>
|
|
|
|
|
|
|
|
<SettingsCategory title="youtube">
|
2024-06-29 18:51:24 +02:00
|
|
|
<SettingsToggle
|
2024-06-24 19:05:51 +02:00
|
|
|
settingContext="save"
|
|
|
|
settingId="youtubeDubBrowserLang"
|
|
|
|
title="use browser language for dubbed videos"
|
|
|
|
description="works even if cobalt ui isn't translated to your language."
|
|
|
|
/>
|
|
|
|
</SettingsCategory>
|
|
|
|
|
|
|
|
<SettingsCategory title="tiktok">
|
2024-06-29 18:51:24 +02:00
|
|
|
<SettingsToggle
|
2024-06-24 19:05:51 +02:00
|
|
|
settingContext="save"
|
|
|
|
settingId="tiktokFullAudio"
|
|
|
|
title="use original sound"
|
|
|
|
description="downloads original sound used in the post without any additional changes by the post's author."
|
|
|
|
/>
|
|
|
|
</SettingsCategory>
|