Configuring Trakt.tv is optional but is required for Trakt based collections to function.
A trakt
mapping is in the root of the config file.
Below is a trakt
mapping example and the full set of attributes:
trakt:
client_id: ################################################################
client_secret: ################################################################
authorization:
access_token:
token_type:
expires_in:
refresh_token:
scope:
created_at:
Name | Attribute | Allowed Values | Default | Required |
---|---|---|---|---|
Client ID | client_id |
Trakt Application Client ID | N/A | ✔️ |
Client Secret | client_secret |
Trakt Application Client Secret | N/A | ✔️ |
-
All other attributes will be filled in by the script.
-
To connect to Trakt.tv you must create a Trakt application and supply the script the
client id
andclient secret
provided, please do the following:
- Click here to create a Trakt API application.
- Enter a
Name
for the application. - Enter
urn:ietf:wg:oauth:2.0:oob
forRedirect uri
. - Click the
SAVE APP
button. - Record the
Client ID
andClient Secret
.
- On the first run, the script will walk the user through the OAuth flow by producing a Trakt URL for the user to follow. Once authenticated at the Trakt URL, the user needs to return the code to the script. If the code is correct, the script will populate the
authorization
sub-attributes to use in subsequent runs.
To authenticate Trakt the first time, you need run the container with the -it
flags in order to walk through the OAuth flow mentioned above. Once you have the Trakt authentication data saved into the YAML, you'll be able to run the container normally.
Directions on how to authenticate Trakt on unRAID can be found on the unRAID Walkthrough page.