flask_plex
Plex webhook listener written in plex that updates trakt on watched shows and movies.
Instructions
To run this application you will need:
- create a trakt api app https://trakt.tv/oauth/applications/new
- setup a plex webhook https://support.plex.tv/articles/115002267687-webhooks/
Next
- Clone the git repo
- cd flask_plex
touch creds.json
- Create uwsgi.ini
[uwsgi]
http = :51120
wsgi-file = path to git
single-interpreter = true
enable-threads = true
master = true
processes = 4
threads = 2
env = JSON_URL=path to json to save login token
env = URL=https://api.trakt.tv
env = CLIENT_ID=client_id
env = CLIENT_SECRET=client_secret
logto = path to logs
safe-pidfile = path to pid file to keep track of running instance
- Set env variables.
- run uwsgi:
uwsgi --ini .config/trakt_sync/uwsgi.ini