Skip to content

Trakt Attributes

Configuring Trakt.tv is optional but is required for Trakt based collections to function.

Warning

Using Trakt meaningfully with Kometa probably requires a Trakt VIP account, since Trakt has limited free accounts to having a single external application connected. This means that if you connect Kometa to Trakt, you can't use Trakt with any other application like MDBList, and vice versa, if you connect Trakt to any other applicaiton, you can't connect it to Kometa.

The trakt attribute is found at the root of the config file.

Kometa will keep these credentials up-to-date; they expire in 24 hours and will need to be renewed.

Warning

Your config file needs to be writable by Kometa, since the authentication attribute gets updated when the credentials are renewed.

If the config file is not writable, the Trakt renewal will eventually fail.

config.yml Trakt sample
trakt:
  client_id: 1a2b3c4d5e6f7g8h9i
  client_secret: 1a12b23c34d45e56f6
  pin:
  force_refresh: false
  authorization:
    access_token: 4cc355t0k3nh3r3
    token_type: Bearer
    expires_in: 1928374655
    refresh_token: r3fr35ht0k3nh3r3
    scope: public 
    created_at: 137946258
Attribute Description Allowed Values (default in bold) Required
client_id Trakt application client ID. Any valid ID or leave blank
client_secret Trakt application client secret. Any valid secret or leave blank
pin Trakt PIN. PIN string or leave blank
force_refresh Refresh credentials on every run. 'true' or 'false'

All other attributes will be filled in as part of the authentication process

Authenticating Trakt

To connect to Trakt.tv you must create a Trakt application:

  1. Click here to create a Trakt API application.
  2. Click the "+" in the upper right.
  3. Enter a Name for the application.
  4. Enter https://utilities.kometa.wiki/trakt-oauth/callback for Redirect uri.
  5. You can leave "Description" and "JavaScript (CORS) origins" blank.
  6. Click the Create button.
  7. Record the Client ID and Client Secret; you will need them later, and you only need do this process once..

Now authenticate against Trakt using the Kometa Utilities.