From ce054e63fc0fbb2d11e3f52b43024952a9aaf361 Mon Sep 17 00:00:00 2001
From: wukko <me@wukko.me>
Date: Wed, 18 Sep 2024 20:23:29 +0600
Subject: [PATCH] web/settings: improve settings section ids

---
 web/src/routes/settings/audio/+page.svelte    | 5 ++---
 web/src/routes/settings/download/+page.svelte | 2 +-
 web/src/routes/settings/video/+page.svelte    | 4 ++--
 3 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/web/src/routes/settings/audio/+page.svelte b/web/src/routes/settings/audio/+page.svelte
index e2cda6f6..8ea9f34a 100644
--- a/web/src/routes/settings/audio/+page.svelte
+++ b/web/src/routes/settings/audio/+page.svelte
@@ -9,7 +9,7 @@
     import SettingsToggle from "$components/buttons/SettingsToggle.svelte";
 </script>
 
-<SettingsCategory sectionId="audio-format" title={$t("settings.audio.format")}>
+<SettingsCategory sectionId="format" title={$t("settings.audio.format")}>
     <Switcher big={true} description={$t("settings.audio.format.description")}>
         {#each audioFormatOptions as value}
             <SettingsButton
@@ -23,8 +23,7 @@
     </Switcher>
 </SettingsCategory>
 
-
-<SettingsCategory sectionId="audio-bitrate" title={$t("settings.audio.bitrate")}>
+<SettingsCategory sectionId="bitrate" title={$t("settings.audio.bitrate")}>
     <Switcher big={true} description={$t("settings.audio.bitrate.description")}>
         {#each audioBitrateOptions as value}
             <SettingsButton
diff --git a/web/src/routes/settings/download/+page.svelte b/web/src/routes/settings/download/+page.svelte
index 91b75043..48a2b433 100644
--- a/web/src/routes/settings/download/+page.svelte
+++ b/web/src/routes/settings/download/+page.svelte
@@ -45,7 +45,7 @@
 </SettingsCategory>
 
 <SettingsCategory
-    sectionId="disable-metadata"
+    sectionId="metadata"
     title={$t("settings.metadata.file")}
 >
     <SettingsToggle
diff --git a/web/src/routes/settings/video/+page.svelte b/web/src/routes/settings/video/+page.svelte
index 38ce0d8d..c43016cb 100644
--- a/web/src/routes/settings/video/+page.svelte
+++ b/web/src/routes/settings/video/+page.svelte
@@ -17,7 +17,7 @@
 </script>
 
 <SettingsCategory
-    sectionId="video-quality"
+    sectionId="quality"
     title={$t("settings.video.quality")}
 >
     <Switcher big={true} description={$t("settings.video.quality.description")}>
@@ -34,7 +34,7 @@
 </SettingsCategory>
 
 <SettingsCategory
-    sectionId="youtube-codec"
+    sectionId="codec"
     title={$t("settings.video.youtube.codec")}
 >
     <Switcher