trying parse different url, but failed

This commit is contained in:
Julian Freeman
2025-12-02 10:29:39 -04:00
parent ee4880a83b
commit 068bc1c79e
5 changed files with 219 additions and 24 deletions

View File

@@ -8,6 +8,10 @@ export const useAnalysisStore = defineStore('analysis', () => {
const error = ref('')
const metadata = ref<any>(null)
// New state for mix detection
const isMix = ref(false)
const scanMix = ref(false)
const options = ref({
is_audio_only: false,
quality: 'best',
@@ -19,10 +23,9 @@ export const useAnalysisStore = defineStore('analysis', () => {
loading.value = false
error.value = ''
metadata.value = null
// We keep options as is, or reset them?
// Usually keeping user preference for "Audio Only" is nice,
// but let's just reset the content-related stuff.
isMix.value = false
scanMix.value = false
}
return { url, loading, error, metadata, options, reset }
})
return { url, loading, error, metadata, options, isMix, scanMix, reset }
})