diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-05-26 20:38:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-26 20:38:15 -0400 |
commit | 0232325f960b1fbe41e03f74a46fb18a7abf33f7 (patch) | |
tree | 4b9552f3b0db91daab394c4047add01d32e17d44 /ext/data/schemas | |
parent | 900bceda47e4c736e70a66e66cfce719b4c6d203 (diff) |
Refactor json audio source (#1711)
* Move sources to the end of audio options object
* Add custom-json audio source type
* Add support for downloading custom-json
* Remove customSourceType
Diffstat (limited to 'ext/data/schemas')
-rw-r--r-- | ext/data/schemas/options-schema.json | 47 |
1 files changed, 21 insertions, 26 deletions
diff --git a/ext/data/schemas/options-schema.json b/ext/data/schemas/options-schema.json index 3f5bd0c7..9afad1e3 100644 --- a/ext/data/schemas/options-schema.json +++ b/ext/data/schemas/options-schema.json @@ -341,36 +341,17 @@ "type": "object", "required": [ "enabled", - "sources", "volume", "autoPlay", "customSourceUrl", - "customSourceType", - "textToSpeechVoice" + "textToSpeechVoice", + "sources" ], "properties": { "enabled": { "type": "boolean", "default": true }, - "sources": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "jpod101", - "jpod101-alternate", - "jisho", - "text-to-speech", - "text-to-speech-reading", - "custom" - ], - "default": "jpod101" - }, - "default": [ - "jpod101" - ] - }, "volume": { "type": "number", "minimum": 0, @@ -385,14 +366,28 @@ "type": "string", "default": "" }, - "customSourceType": { - "type": "string", - "enum": ["audio", "json"], - "default": "audio" - }, "textToSpeechVoice": { "type": "string", "default": "" + }, + "sources": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "jpod101", + "jpod101-alternate", + "jisho", + "text-to-speech", + "text-to-speech-reading", + "custom", + "custom-json" + ], + "default": "jpod101" + }, + "default": [ + "jpod101" + ] } } }, |