A profile is a JSON file. Its first field must be "format": "ukiji-provider"; that is how Ukiji recognises it, so the file can have any name. Ukiji also takes it from Paste JSON in Providers.
The example uses a made-up host, api.example.invalid. Replace the host and paths with your site’s.
JSON
{
"format": "ukiji-provider",
"version": 3,
"id": "example-subs",
"name": "Example Subs",
"auth": {
"type": "header",
"name": "Authorization",
"hosts": ["api.example.invalid"],
"help": "Key from your account page"
},
"search": {
"url": "https://api.example.invalid/v1/search?q={query}",
"results": "data.items",
"entry": {
"id": "id",
"name": "title",
"altName": "titles.native",
"show": "series.title"
}
},
"files": {
"url": "https://api.example.invalid/v1/items/{id}/files",
"file": {
"name": "name",
"size": "size",
"url": "url"
}
},
"download": {
"mode": "fileUrl"
},
"testQuery": "test"
}
Fields
- format
- Must be "ukiji-provider". This is how Ukiji recognises the file.
- version
- Use 3.
- id and name
- A short unique id, and the name shown in Ukiji.
- auth.type
- Where the key goes: header or query.
- auth.name
- The header or parameter name that carries the key.
- auth.hosts
- The only hosts the key is ever sent to.
- search.url
- The search address, with
{query} where the search words go. - search.results
- Where the list of results is in the reply.
- search.entry.id, name, altName, show
- Which fields give each result’s id, title, second title and show name.
- files.url
- The address that lists subtitle files, with
{id} for the chosen result. Use files.inline instead if the search reply already lists them. - files.file.name, size, url
- Which fields give each file’s name, size and download address.
- download.mode
- fileUrl if the file has its own address; request for sites that need a second step.
- testQuery
- A word Ukiji searches to check the profile works.
Your keys stay on your phone, only https addresses are allowed, and Ukiji shows the hosts for you to review before you save.