TrackTV Integration - 0xSysR3ll/MediaTrackSync GitHub Wiki

Prerequisites

  • A registered Trakt.tv account
  • Trakt.tv API credentials (Client ID and Client Secret)

Getting API Credentials

  1. Go to Trakt.tv API Settings
  2. Click "New Application"
  3. Fill in the required information:
    • Name: MediaTrackSync
    • Description: Automatic media tracking
    • Redirect URI: http://127.0.0.1:5000
  4. Save the application
  5. Note down your Client ID and Client Secret

Configuration

  1. Open the configuration file (config/config.yml)
  2. Add your Trakt.tv credentials under the users section:
    tracktv:
      client_id: your_client_id
      client_secret: your_client_secret
      code: your_authorization_code
      redirect_uri: http://127.0.0.1:5000
    
  3. Get your authorization code:
    • Visit: https://trakt.tv/oauth/authorize?response_type=code&client_id=YOUR_CLIENT_ID&redirect_uri=http://127.0.0.1:5000
    • Log in to your Trakt.tv account
    • Authorize the application
    • Copy the authorization code
  4. Save the configuration file
  5. Restart the app

Troubleshooting

If you encounter any issues:

  1. Check that your Trakt.tv credentials are correct
  2. Verify that your authorization code is valid (they expire after a while)
  3. Check the logs for any error messages
  4. Ensure your server can reach the Trakt.tv API

[!NOTE] Authorization codes expire after a while, you may need to generate a new one