Skip to main content

This python script will sync user ratings for Movies and TV Shows both ways between Trakt and TMDB.

Project description

TMDB-Trakt-Syncer

This Python script syncs user ratings for Movies, TV Shows, and Episodes both ways between Trakt and TMDB. Ratings already set will not be overwritten. The script is compatible on any operating system that supports Python v3.6 or later, including Windows, Linux, Mac, and ChromeOS. If you're interested in syncing ratings between Trakt, Plex, IMDB, and TMDB, I recommend the following projects: PlexTraktSync, IMDB-Trakt-Syncer, and TMDB-Trakt-Syncer.

Installation Instructions:

  1. Install Python (v3.6 or later).
  2. Install the script by running python -m pip install TMDBTraktSyncer in command line.
  3. Login to Trakt and create a new API application named TMDbTraktSyncer. In the "Redirect uri" field, enter urn:ietf:wg:oauth:2.0:oob, then save the application.
  4. Login to TMDB and create a new API application. Choose "Developer" and accept the terms. Fill out the application form as follows:
    • Type of use: Personal
    • Application name: TMDB-Trakt-Sync
    • Application URL: localhost
    • Application summary: Use TMDB API and Trakt API to sync user ratings between platforms. https://github.com/RileyXX/TMDB-Trakt-Syncer
    • Fill in the rest of the fields as desired and submit the form. Your API keys will be generated instantly.
  5. Run the script by running TMDBTraktSyncer in the command line.
  6. Follow the prompts during the first run. You will need to enter your Trakt client ID and client secret from step 3, as well as your tmdb_v4_token from step 4. Please note that these details are saved insecurely as credentials.txt in the same folder as the script.
  7. Setup is complete. The script will continue running and syncing your ratings. You can monitor its progress in the command line.

Installing the Script:

python -m pip install TMDBTraktSyncer

Run in your operating system's native command line.

Running the Script:

TMDBTraktSyncer

Run in your operating system's native command line.

Updating the Script:

python -m pip install TMDBTraktSyncer --upgrade

Run in your operating system's native command line.

Uninstalling the Script:

python -m pip uninstall TMDBTraktSyncer

Run in your operating system's native command line.

Installing a Specific Version:

python -m pip install TMDBTraktSyncer==VERSION_NUMBER

Replace VERSION_NUMBER with your desired version (e.g. 1.0.1) and run in your operating system's native command line.

Alternative Manual Installation Method (without pip install):

  1. Install Python (v3.6 or later).
  2. Download the latest .zip from the releases page and extract it to the desired directory.
  3. Login to Trakt and create a new API application named TMDBTraktSyncer. In the "Redirect uri" field, enter urn:ietf:wg:oauth:2.0:oob, then save the application.
  4. Login to TMDB and create a new API application. Choose "Developer" and accept the terms. Fill out the application form as follows:
    • Type of use: Personal
    • Application name: TMDB-Trakt-Sync
    • Application URL: localhost
    • Application summary: Use TMDB API and Trakt API to sync user ratings between platforms. https://github.com/RileyXX/TMDB-Trakt-Syncer
    • Fill in the rest of the fields as desired and submit the form. Your API keys will be generated instantly.
  5. Run TMDBTraktSyncer.py or open the terminal and navigate to the folder where TMDBTraktSyncer.py is located, then run TMDBTraktSyncer.py in the terminal.
  6. Follow the prompts during the first run. You will need to enter your Trakt client ID and client secret from step 3, as well as your tmdb_v4_token from step 4. Please note that these details are saved insecurely as credentials.txt in the same folder as the script.
  7. Setup is complete. The script will continue running and syncing your ratings. You can monitor its progress in the command line.

Troubleshooting, Known Issues, Workarounds & Future Outlook:

  • Add support for review/comment sync Issue #1
  • If any of your details change (passwords, logins, API keys, etc.), simply open credentials.txt, modify your details, save it and then run the script again. Alternatively, delete credentials.txt to reset the script and it will prompt you to enter your new details on the next run.

Screenshot:

Demo

Sponsorships, Donations, and Custom Projects:

If you find my scripts helpful, you can become a sponsor and support my projects! If you need help with a project, open an issue, and I'll do my best to assist you. For other inquiries and custom projects, you can contact me on Twitter.

More Donation Options:

  • Cashapp: $rileyxx
  • Venmo: @rileyxx
  • Bitcoin: bc1qrjevwqv49z8y77len3azqfghxrjmrjvhy5zqau
  • Amazon Wishlist: Link ↗

Also Posted on:


License: MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

TMDBTraktSyncer-1.0.2.tar.gz (10.2 kB view hashes)

Uploaded Source

Built Distribution

TMDBTraktSyncer-1.0.2-py3-none-any.whl (10.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page