From 5712fcc36a0e385601b37953d4d0cf1c9cc4b1c2 Mon Sep 17 00:00:00 2001 From: stratuma Date: Fri, 21 Jun 2024 21:22:31 +0200 Subject: [PATCH] added default video and audio quality selector, video format --- components/Settings/Crunchyroll.vue | 3 +- components/Settings/Main.vue | 71 ++++++++++++++++++++++++++++- pages/addanime.vue | 11 ++++- pages/settings.vue | 20 +++++++- 4 files changed, 101 insertions(+), 4 deletions(-) diff --git a/components/Settings/Crunchyroll.vue b/components/Settings/Crunchyroll.vue index c6d861a..8271da6 100644 --- a/components/Settings/Crunchyroll.vue +++ b/components/Settings/Crunchyroll.vue @@ -42,12 +42,13 @@ diff --git a/pages/addanime.vue b/pages/addanime.vue index d8eecaa..94df0f7 100644 --- a/pages/addanime.vue +++ b/pages/addanime.vue @@ -303,7 +303,7 @@ @@ -550,6 +550,15 @@ onMounted(() => { subLocales.value = JSON.parse(result) }) + ;(window as any).myAPI.getDefaultVideoQuality().then((result: any) => { + quality.value = result + }) + ;(window as any).myAPI.getDefaultAudioQuality().then((result: any) => { + qualityaudio.value = result + }) + ;(window as any).myAPI.getDefaultOutputFormat().then((result: any) => { + format.value = result + }) }) const getFolderPath = () => { diff --git a/pages/settings.vue b/pages/settings.vue index 55692c8..c89c2c6 100644 --- a/pages/settings.vue +++ b/pages/settings.vue @@ -1,5 +1,5 @@