|
| 1 | +--- |
| 2 | +title: "tonies-custom-json config" |
| 3 | +description: "Info about the tonies-custom-json file" |
| 4 | +bookCollapseSection: true |
| 5 | +--- |
| 6 | +# tonies.custom.json |
| 7 | +Toniecloud uses the tonies-custom-json file to read the metadata of custom tags in the same manner it's done for the official boxine tonies in the tonies-json file. The structure is the same, but it's not overwritten as the tonies-json file through regularly updates. So you can use the tonies-custom-json to save metadata of your own custom tags. |
| 8 | + |
| 9 | +Initially the tonies-custom-json file looks like the following: |
| 10 | + |
| 11 | +``` |
| 12 | +[] |
| 13 | +``` |
| 14 | + |
| 15 | +In the gui, a custom tag looks initially like: |
| 16 | + |
| 17 | +_old gui_ |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | +_new /web gui_ |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | +With one custom tag the tonies-custom-json file looks like this (more details see below in section [Specification](#specification)): |
| 29 | + |
| 30 | +``` |
| 31 | +[{"no": "0", "model": "123456", "audio_id": ["369519776"], "hash": ["af9e61a9c1b12138fb060908d595742334b04515"], "title": "Custom Tonie Example Title", "series": "Custom Tonies", "episodes": "This is my custom tonie", "tracks": ["Title 1", "Title 2", "Title 3", "Title 4", "Title 5", "Title 6", "Title 7", "Title 8", "Title 9", "Title 10"], "release": "0", "language": "de-de", "category": "custom", "pic": "https://upload.wikimedia.org/wikipedia/en/6/6b/Hello_Web_Series_%28Wordmark%29_Logo.png"}] |
| 32 | +``` |
| 33 | + |
| 34 | +This results after restart of teddycloud in the following changed appearance in the GUIs: |
| 35 | + |
| 36 | +_old gui_ |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | +_new /web gui_ |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | +## Specification |
| 50 | + |
| 51 | +The tonies-custom-json file uses the JSON Array Structure. It contains zero, one, or more ordered elements, separated by a comma. The JSON array is surrounded by square brackets [ ]. |
| 52 | + |
| 53 | +Each element consists of a JSON object with the following keys: |
| 54 | + |
| 55 | + |
| 56 | +| Option | Example value | Description | |
| 57 | +|----------------|---------------------------------------------------------------------------------------------|-------------| |
| 58 | +| no | `"0"` | Number of custom tag | |
| 59 | +| model | `""` | A model number of the custom tag, can be left empty | |
| 60 | +| audio_id | `["369519776"]` | Enter the custom audio ID of the custom tag. Can be found in the old GUI as shown below | |
| 61 | +| hash | `["af9e61a9c1b12138fb060908d595742334b04515"]` | Enter the hash of the custom tag. Can be found in the old GUI as shown below | |
| 62 | +| title | `"Custom Tonie Example Title"` | Enter the title of the custom tag, it's currently not displayed, use the series and episode tag to give your custom tag a title which is shown in the GUI | |
| 63 | +| series | `"Custom Tonie"` | Enter the Series of the custom tag, will be shown in the GUI | |
| 64 | +| episodes | `"This is my custom tonie"` | Enter the Episode of the custom tag, will be shown in the GUI | |
| 65 | +| tracks | `["Title 1", "Title 2"]` | Enter the tracks of the custom tag, will be shown in the new GUI only | |
| 66 | +| release | `"0"` | currently unused | |
| 67 | +| language | `"de-de"` | language code, currently unused | |
| 68 | +| category | `"custom"` | category of the custom tag, currently unused | |
| 69 | +| pic | `"https://upload.wikimedia.org/wikipedia/en/6/6b/Hello_Web_Series_%28Wordmark%29_Logo.png"` | url of the picture which shall be shown as custom tag image in the GUI | |
| 70 | + |
| 71 | + |
| 72 | + |
0 commit comments