MIT License

项目介绍

angeloanan/MPC-DiscordRPC 是一个托管在 GitHub 上的开源项目,主要使用 JavaScript 编写,采用 MIT License 许可证,目前获得 112 个 Star、17 次 Fork。

仓库全名
angeloanan/MPC-DiscordRPC
开源许可证
MIT License
Star 数
112
Fork 数
17
未关闭 Issue
13

README 摘要

MPC-DiscordRPC Discord Rich Presence for Media Player Classic (Home Cinema and Black Edition) How does this work? 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. How to install 1. Open your Media Player Classic, go to View…

完整内容见 GitHub 原始 README 或本页 。

常见问题

MPC-DiscordRPC 用什么语言开发?

主要使用 JavaScript 编写,采用 MIT License 许可证,目前有 112 个 Star。

MPC-DiscordRPC 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 MPC-DiscordRPC 的源码?

可以直接克隆仓库:git clone https://github.com/angeloanan/MPC-DiscordRPC.git;安装与运行步骤见仓库 README。

MPC-DiscordRPC 最近还在维护吗?

仓库最近一次更新为 2022年12月31日,当前有 13 个未关闭 Issue;Star 数为 112,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

Discord Rich Presence for Media Player Classic

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
258
价值分
82
活跃状态
活跃

语言占比

JavaScript

Release

README

MPC-DiscordRPC

Discord Rich Presence for Media Player Classic (Home Cinema and Black Edition)

Media Player Classic Home Cinema and Black Edition Rich Presence on Discord small profile

How does this work?

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.

How to install

  1. Open your Media Player Classic, go to View > Options > Player > Web Interface and enable Listen on port: option. The default port is 13579, but if you have changed it, please edit the config.js file after you download the project.

Enable the option "Listen on port"

  1. Install Node.JS (we recommend using the latest version).

  2. 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
  1. 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.

  1. 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

How to update

  1. Navigate to the directory where did you cloned/downloaded this project and open a terminal window.

  2. Stop the program using:

npm stop
  1. 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
    
  2. Start the program again using:

npm start

Now you may close the terminal. The project is fully up to date!

config.js options

exports.port

Default: 13579

Port on which MPC Web Interface is running. See the How to install section above to learn more.

exports.ignoreBrackets

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.

exports.ignoreFiletype

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.

exports.replaceUnderscore

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.

exports.replaceDots

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.

exports.showRemainingTime

Default: false

Whether to display the current file’s remaining playback time while playing, instead of showing the elapsed time.

评论

暂无评论