Perhaps you're running Kometa in a docker or something where getting it into interactive mode to authentication trakt is a hassle.
This repo contains the scripts from over here wrapped up as a Flask app.
It's deployed at press time here
You can review the code here if you're concerned about it saving credentials or the like. I am profoundly uninterested in gaining access to your Trakt or MAL accounts.
You can run this on your own machine if you want to, of course.
Operation should be pretty self-explanatory.
- Enter client ID and secret.
- For Trakt, if you didn't retrieve a PIN yourself less than ten minutes ago, click the button, and enter the PIN in the field.
- For MyAnimeList, click the button to authenticate and get the required "localhost URL"
- Click "Submit"
- Copy and paste the result into your Kometa config.
You can run it in Docker or Python.
- build the image with
docker build -t kometa-auth-image .
- run the container with
docker run --rm kometa-auth-image
- If you get a message complaining that something else is already running on port 5000, run the container with
docker run --rm -p 5001:5000 kometa-auth-image
- go to
http://127.0.0.1:5000
ORhttp://127.0.0.1:5001
. - see instructions above
- Make sure you are running a recent Python [this was developed on Python 3.11]
- Run these commands to create a virtual environment and install requirements.
python3 -m venv kometa-auth-venv . kometa-auth-venv/bin/activate python -m pip install -r requirements.txt
- run the script with
python app.py
- If you get a message complaining that something else is already running on port 5000, open
app.py
and change the 5000 on the last line to 5001; repeat step 3. - go to
http://127.0.0.1:5000
ORhttp://127.0.0.1:5001
. - see instructions above
Docker or the already deployed version are recommended.