A simple python script that acts as a bridge between Discord and Trakt, allowing for the display of the watch status as Discord's Rich Presence. Essentially, it's a Trakt Discord rich presence.
- Create an API Application on Trakt.tv (with scrobble capabilities and
urn:ietf:wg:oauth:2.0:oob
as the redirect uri) and an Application on Discord. - Edit the
credentials.ini
file with the required API keys (Cliend IDs) and Trakt username. - In the Discord Developer Dashboard, within your application and under Rich Presence -> Art Assets, upload the application images, either the ones located in
/images
or ones that you choose to submit (as long as the keys for those images staytv
andmovie
). - Run the respective executable and you're ready to start sharing your progress!
P.S. Discord needs to be running on the machine Discrakt is running on.
Running the executables is as easy as clicking the provided executables in the latest release (.exe
for Windows and .sh
for UNIX systems). That's it!
Set the script/executable to run at startup so you don't have to worry about it again (Windows/Unix)!
As usual, it is recommended to use venv and Python 3.9.
After this, simply install the dependencies using pip install -r requirements.txt
.
After setting things up by following the previous section, you can run this script with: python discrakt.py
When a show is detected throught the Trakt API, a similar output is expected in the logs:
movie
and tv
icons by iconixar