sam5558 / Kodi-MAL-RPC-Discord

A simple python script to update Discord's rich presence

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kodi-MAL-RPC-Discord

Do you want a simple python script that'll give your discord community an idea about what show you're watching in Kodi and/or give them an overview of your MyAnimeList statistics ? If the answer is yes you're on the right place.

Right now this script has been tested only in linux with Python 3.6+, any environment other than this one hasn't been tested. You also need to know that i've targeted only TV SHOWS, still didn't have time to work on Movies section, Live TV or Music :(

pypresence

Prerequisites

You need to :

  • Install Python3.6+.
  • Install python dependencies (pip -i dependencies.txt).
  • Discord Desktop app should be installed and running.
  • Create your own application in the DEVELOPER PORTAL, you can customize your app there (add image, icons, ...).

How to use it

If you want the version without MyAnimelist Statistics support in Rich Presence download UpdateStatus.py, else download UpdateStatuswithMyAnimeList.py

  • Grab your app Client-id and override myclientid variable in the following line : client_id = 'mysecretid' with your client-id.
  • Replace myusername in python script : username = 'myusername' with your MyAnimeList Username (If you use UpdateStatuswithMyAnimeList.py)
  • Enable your web UI in Kodi (basically your 8080 port as it is done by adding a web interface for Kodi).
  • Play your content in TV SHOWS.
  • execute the script python3.6 UpdateStatus.py (or python3.6 UpdateStatus.py & to run in background mode
  • To kill your script kill -9 mypid (mypid is the pid's script whenever it's run in the background)

Screenshot

Alt text

Enjoy

If you like this content you're welcome to watch, star or fork ;)

About

A simple python script to update Discord's rich presence


Languages

Language:Python 100.0%