|
1 | 1 | {
|
2 | 2 | "$schema": "http://json-schema.org/draft-07/schema#",
|
3 | 3 | "definitions": {
|
| 4 | + "ChromecastData": { |
| 5 | + "properties": { |
| 6 | + "blacklistApps": { |
| 7 | + "anyOf": [ |
| 8 | + { |
| 9 | + "items": { |
| 10 | + "type": "string" |
| 11 | + }, |
| 12 | + "type": "array" |
| 13 | + }, |
| 14 | + { |
| 15 | + "type": "string" |
| 16 | + } |
| 17 | + ], |
| 18 | + "description": "DO NOT scrobble from any application that START WITH these values, case-insensitive", |
| 19 | + "examples": [ |
| 20 | + [ |
| 21 | + "spotify", |
| 22 | + "pandora" |
| 23 | + ] |
| 24 | + ], |
| 25 | + "title": "blacklistApps" |
| 26 | + }, |
| 27 | + "blacklistDevices": { |
| 28 | + "anyOf": [ |
| 29 | + { |
| 30 | + "items": { |
| 31 | + "type": "string" |
| 32 | + }, |
| 33 | + "type": "array" |
| 34 | + }, |
| 35 | + { |
| 36 | + "type": "string" |
| 37 | + } |
| 38 | + ], |
| 39 | + "description": "DO NOT scrobble from any cast devices that START WITH these values, case-insensitive", |
| 40 | + "examples": [ |
| 41 | + [ |
| 42 | + "home-mini", |
| 43 | + "family-tv" |
| 44 | + ] |
| 45 | + ], |
| 46 | + "title": "blacklistDevices" |
| 47 | + }, |
| 48 | + "maxPollRetries": { |
| 49 | + "default": 5, |
| 50 | + "description": "default # of automatic polling restarts on error", |
| 51 | + "examples": [ |
| 52 | + 5 |
| 53 | + ], |
| 54 | + "title": "maxPollRetries", |
| 55 | + "type": "number" |
| 56 | + }, |
| 57 | + "maxRequestRetries": { |
| 58 | + "default": 1, |
| 59 | + "description": "default # of http request retries a source can make before error is thrown", |
| 60 | + "examples": [ |
| 61 | + 1 |
| 62 | + ], |
| 63 | + "title": "maxRequestRetries", |
| 64 | + "type": "number" |
| 65 | + }, |
| 66 | + "options": { |
| 67 | + "$ref": "#/definitions/Record<string,any>", |
| 68 | + "title": "options" |
| 69 | + }, |
| 70 | + "retryMultiplier": { |
| 71 | + "default": 1.5, |
| 72 | + "description": "default retry delay multiplier (retry attempt * multiplier = # of seconds to wait before retrying)", |
| 73 | + "examples": [ |
| 74 | + 1.5 |
| 75 | + ], |
| 76 | + "title": "retryMultiplier", |
| 77 | + "type": "number" |
| 78 | + }, |
| 79 | + "scrobbleThresholds": { |
| 80 | + "$ref": "#/definitions/ScrobbleThresholds", |
| 81 | + "description": "Set thresholds for when multi-scrobbler should consider a tracked play to be \"scrobbable\". If both duration and percent are defined then if either condition is met the track is scrobbled.", |
| 82 | + "title": "scrobbleThresholds" |
| 83 | + }, |
| 84 | + "whitelistApps": { |
| 85 | + "anyOf": [ |
| 86 | + { |
| 87 | + "items": { |
| 88 | + "type": "string" |
| 89 | + }, |
| 90 | + "type": "array" |
| 91 | + }, |
| 92 | + { |
| 93 | + "type": "string" |
| 94 | + } |
| 95 | + ], |
| 96 | + "description": "ONLY scrobble from any application that START WITH these values, case-insensitive\n\nIf whitelist is present then blacklist is ignored", |
| 97 | + "examples": [ |
| 98 | + [ |
| 99 | + "spotify", |
| 100 | + "pandora" |
| 101 | + ] |
| 102 | + ], |
| 103 | + "title": "whitelistApps" |
| 104 | + }, |
| 105 | + "whitelistDevices": { |
| 106 | + "anyOf": [ |
| 107 | + { |
| 108 | + "items": { |
| 109 | + "type": "string" |
| 110 | + }, |
| 111 | + "type": "array" |
| 112 | + }, |
| 113 | + { |
| 114 | + "type": "string" |
| 115 | + } |
| 116 | + ], |
| 117 | + "description": "ONLY scrobble from any cast device that START WITH these values, case-insensitive\n\nIf whitelist is present then blacklist is ignored", |
| 118 | + "examples": [ |
| 119 | + [ |
| 120 | + "home-mini", |
| 121 | + "family-tv" |
| 122 | + ] |
| 123 | + ], |
| 124 | + "title": "whitelistDevices" |
| 125 | + } |
| 126 | + }, |
| 127 | + "title": "ChromecastData", |
| 128 | + "type": "object" |
| 129 | + }, |
| 130 | + "ChromecastSourceAIOConfig": { |
| 131 | + "properties": { |
| 132 | + "clients": { |
| 133 | + "description": "Restrict scrobbling tracks played from this source to Clients with names from this list. If list is empty is not present Source scrobbles to all configured Clients.", |
| 134 | + "examples": [ |
| 135 | + [ |
| 136 | + "MyMalojaConfigName", |
| 137 | + "MyLastFMConfigName" |
| 138 | + ] |
| 139 | + ], |
| 140 | + "items": { |
| 141 | + "type": "string" |
| 142 | + }, |
| 143 | + "title": "clients", |
| 144 | + "type": "array" |
| 145 | + }, |
| 146 | + "data": { |
| 147 | + "$ref": "#/definitions/ChromecastData", |
| 148 | + "title": "data" |
| 149 | + }, |
| 150 | + "enable": { |
| 151 | + "default": true, |
| 152 | + "description": "Should MS use this client/source? Defaults to true", |
| 153 | + "examples": [ |
| 154 | + true |
| 155 | + ], |
| 156 | + "title": "enable", |
| 157 | + "type": "boolean" |
| 158 | + }, |
| 159 | + "name": { |
| 160 | + "description": "Unique identifier for this source.", |
| 161 | + "title": "name", |
| 162 | + "type": "string" |
| 163 | + }, |
| 164 | + "options": { |
| 165 | + "$ref": "#/definitions/CommonSourceOptions", |
| 166 | + "title": "options" |
| 167 | + }, |
| 168 | + "type": { |
| 169 | + "enum": [ |
| 170 | + "chromecast" |
| 171 | + ], |
| 172 | + "title": "type", |
| 173 | + "type": "string" |
| 174 | + } |
| 175 | + }, |
| 176 | + "required": [ |
| 177 | + "data", |
| 178 | + "type" |
| 179 | + ], |
| 180 | + "title": "ChromecastSourceAIOConfig", |
| 181 | + "type": "object" |
| 182 | + }, |
4 | 183 | "CommonSourceOptions": {
|
5 | 184 | "properties": {
|
6 | 185 | "logFilterFailure": {
|
|
1461 | 1640 | },
|
1462 | 1641 | {
|
1463 | 1642 | "$ref": "#/definitions/WebScrobblerSourceAIOConfig"
|
| 1643 | + }, |
| 1644 | + { |
| 1645 | + "$ref": "#/definitions/ChromecastSourceAIOConfig" |
1464 | 1646 | }
|
1465 | 1647 | ],
|
1466 | 1648 | "title": "SourceAIOConfig"
|
|
0 commit comments