Discord Rich Presence for Media Player Classic (Home Cinema and Black Edition)
This program simply fetches playback data from MPC-HC / MPC-BE Web Interface, and displays it in your Discord profile through their wonderful Rich Presence API.
Please note that this only works with Discord desktop client, not with the web app.
- Open your Media Player Classic, go to
View > Options > Player > Web Interface
and enableListen on port:
option. The default port is13579
, but if you have changed it, please edit theconfig.js
file after you download the project.
-
Install
Node.JS
(we recommend using the latest version). -
Download this project as a .zip file, extract it and open a terminal window in the project directory. Otherwise, if you have Git installed, run:
git clone https://github.com/angeloanan/MPC-DiscordRPC.git && cd MPC-DiscordRPC
- Install dependencies using:
npm i
Note: You can safely ignore all peer and optional dependencies warnings as they are not required for the program to work.
- Start the program using:
npm start
or via
node index.js
Note: Using
npm start
will start the program as a background process so you don't need to keep a terminal window open in order to keep the script running. Thus, you may close your terminal window after running this command.
And voilà! It will now show in your Discord profile what you're watching/listening to on MPC.
If you started the program using npm start
and need MPC-DiscordRPC to stop showing your playback info, just run:
npm stop
-
Navigate to the directory where did you cloned/downloaded this project and open a terminal window.
-
Stop the program using:
npm stop
-
Update this project by redownloading this project as a .zip file and replacing the old files.
Otherwise, if you have Git installed, run:
git pull
-
Start the program again using:
npm start
Now you may close the terminal. The project is fully up to date!
Default: 13579
Port on which MPC Web Interface is running. See the How to install section above to learn more.
Default: true
Whether to omit brackets []
and its content in filenames. Useful if you don't want to show on your profile those info tags that usually comes inside brackets in filenames, like [1080p]
, [Translator Group Name]
, etc. You can set it to false
or remove this line to turn off this behavior.
Default: false
Whether to omit filetype. Useful if you don't want to show on your profile the type of the file that is currently open, for example .mp4
, .mkv
, .flac
. You can set it to true
to turn on this behavior.
Default: true
Whether to replace _
with space. Useful if you have files like Your_Favourite_Movie
. You can set it to false
or remove this line to turn off this behavior.
Default: true
Whether to replace dot (.
) characters (except the file extension one) with spaces. This way, Your.Favourite.Movie.mp4
will be displayed as Your Favourite Movie.mp4
. You can set it to false
or remove this line to turn off this behavior.
Default: false
Whether to display the current file's remaining playback time while playing, instead of showing the elapsed time.