trying parse different url, but failed
This commit is contained in:
@@ -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 }
|
||||
})
|
||||
Reference in New Issue
Block a user