{"id":13608344,"url":"https://github.com/cniw/mpv-discordRPC","last_synced_at":"2025-04-12T14:32:38.605Z","repository":{"id":37399440,"uuid":"134470129","full_name":"cniw/mpv-discordRPC","owner":"cniw","description":"Discord Rich Presence integration for mpv Media Player","archived":false,"fork":false,"pushed_at":"2022-08-08T05:57:55.000Z","size":2850,"stargazers_count":138,"open_issues_count":12,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-07T13:40:59.144Z","etag":null,"topics":["discord","discord-rich-presence","discord-rpc","linux","lua","lua-script","luajit","mac","mpv","mpv-discordrpc","mpv-media-player","mpv-script","osx","python","python3","rich-presence","script","windows"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cniw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-22T20:09:07.000Z","updated_at":"2024-10-17T16:58:33.000Z","dependencies_parsed_at":"2022-07-13T01:03:19.235Z","dependency_job_id":null,"html_url":"https://github.com/cniw/mpv-discordRPC","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cniw%2Fmpv-discordRPC","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cniw%2Fmpv-discordRPC/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cniw%2Fmpv-discordRPC/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cniw%2Fmpv-discordRPC/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cniw","download_url":"https://codeload.github.com/cniw/mpv-discordRPC/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248581356,"owners_count":21128155,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["discord","discord-rich-presence","discord-rpc","linux","lua","lua-script","luajit","mac","mpv","mpv-discordrpc","mpv-media-player","mpv-script","osx","python","python3","rich-presence","script","windows"],"created_at":"2024-08-01T19:01:26.516Z","updated_at":"2025-04-12T14:32:37.965Z","avatar_url":"https://github.com/cniw.png","language":"Lua","funding_links":[],"categories":["Social","Lua"],"sub_categories":[],"readme":"\u003ccenter\u003e\u003cimg align=\"right\" src=\"images/buffering_mpv_stream.png\"\u003e\u003c/center\u003e\n\u003ch1 align=\"center\"\u003e\u003ca href=\"https://github.com/cniw/mpv-discordRPC\"\u003empv-discordRPC\u003c/a\u003e\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\u003cb\u003eDiscord Rich Presence intergation for mpv Media Player\u003c/b\u003e\u003c/p\u003e\n\u003chr\u003e\u003cp align=\"center\"\u003e\nThis is alternative version, edited from \u003ca href=\"https://github.com/noaione/mpv-discordRPC\"\u003empv-discordRPC\u003c/a\u003e.\nI add metadata tags (Title, Artist and Album) support for 'details' and I use status-line for 'state'.\nI use 'elapsed' time mode when idle, while when playing, paused, and buffering use 'left' time mode.\nI add support and installer script for Linux, Mac and Windows.\nI also add custom configuration file and new features: info, cover art, url detections, and active/inactive toggle.\n\u003c/p\u003e\u003cp align=\"right\"\u003e\nFor more description read below.\n\u003c/p\u003e\n\n---\n\n## Previews\n\n| Description | Image |\n| :-: | :-: |\n| Idle | ![Idle](images/idle.png)\n| Playing | ![Playing](images/playing.png)\n| Paused | ![Paused](images/paused.png)\n| Info: playlist and loop | ![Info: playlist and loop](images/info.png)\n| Cover art | ![Cover art](images/coverart.png)\n| YouTube playing | ![YouTube playing](images/playing_youtube.png)\n| Crunchyroll paused  | ![Crunchyroll paused](images/paused_crunchyroll.png)\n| SoundCloud playing | ![SoundCloud playing](images/playing_soundcloud.png)\n| LISTEN.moe paused  | ![LISTEN.moe paused](images/paused_listen_moe.png)\n\n---\n\n## Used softwares\n\n1. Provided by user: [mpv][mpv], [Discord][discord]\n2. Included: [Discord RPC][discord-rpc], [status-line][status-line],\n[lua-discordRPC][lua-discordRPC]\n3. Optional: [Python][python], [pypresence][pypresence]\n\n---\n\n## Downloads\n\n- Latest Releases [![download](https://img.shields.io/github/downloads/cniw/mpv-discordRPC/latest/total.svg)](https://github.com/cniw/mpv-discordRPC/releases/latest)\n ![](https://img.shields.io/github/release/cniw/mpv-discordRPC.svg)\n ![](https://img.shields.io/github/release-date/cniw/mpv-discordRPC.svg)\n- All Releases [![download](https://img.shields.io/github/downloads/cniw/mpv-discordRPC/total.svg)](https://github.com/cniw/mpv-discordRPC/releases)\n\n---\n\n## Installation\n\n1. For Linux, installing just run `install-linux.sh` on terminal.\n2. For Windows, installing just run `install-win.bat` by double-clicking it.\n3. For Mac, installing just run `install-osx.sh` on terminal.\n\n---\n\n## Settings\n\nJust edit `mpv_discordRPC.conf` file in `script-opts` folder. Now Available 2\nrpc_wrapper option, choose one. Example:\n\n* Configuration (A) rpc_wrapper and periodic_timer\n\n    ```conf\n    rpc_wrapper=lua-discordRPC\n    periodic_timer=1\n    ```\n\n* Configuration (B) rpc_wrapper and periodic_timer\n\n    ```conf\n    rpc_wrapper=python-pypresence\n    periodic_timer=3\n    ```\n\nSetting to show playlist info and loop info. Example:\n\n* Configuration playlist_info and loop_info\n\n    ```conf\n    playlist_info=yes\n    loop_info=yes\n    ```\n\nSetting to show cover art. Example:\n\n* Configuration cover_art\n\n    ```conf\n    cover_art=yes\n    ```\n\nSetting to active/inactive toggle the Discord RPC and the start states. Example:\n\n* Configuration active and key_toggle\n\n    ```conf\n    active=yes\n    key_toggle=D\n    ```\n\n### To use _`rpc_wrapper=lua-discordRPC`_, Important LuaJIT on mpv\n\nCheck [LuaJIT][luajit], because it has [FFI Library][ext_ffi] and it needed by\n[lua-discordRPC][lua-discordRPC].\n\n1. For Linux\n    - Make sure your mpv binary linked to luajit~~ not lua~~ library.\n\n        ```bash\n        ldd $(which mpv) | grep luajit\n        libluajit-5.1.so.2 =\u003e /usr/lib/x86_64-linux-gnu/libluajit-5.1.so.2 (0x00007f32e9a83000)\n        ```\n\n    - If it's dynamic build while it's static build you can check with\n\n        ```bash\n        mpv -v -V | sed -rn 's/.*(luajit).*/\\1/p'\n        luajit\n        ```\n\n2. For Windows ***(Don't worry)***\n   - You can skip this because available mpv Windows build by [lachs0r][lachs0r]\n   and [shinchiro][shinchiro] already use LuaJIT and it static build which\n   configured with `--enable-static-build`.\n3. For Mac ***(So sad)***\n   - Until now, LuaJIT still have problem on Mac OS X. Also build mpv with\n   LuaJIT on Mac OS X (read [mpv issue #1110][mpv issue #1110]), it maybe can\n   build successfully but still can't load LuaJIT properly when run mpv (read\n   [mpv issue #5205][mpv issue #5205]). You can check with `otool` command.\n\n### To use _`rpc_wrapper=python-pypresence`_, Important to install pypresence\n\n**Support Mac, Windows, and Linux** because can use with [Lua][lua] or [LuaJIT][luajit].\n\n1. Install [Python][python] \u003e=3.5 because this version has [asyncio][asyncio]\nlibrary which needed by pypresence.\n2. Install [pypresence][pypresence] `pip install pypresence` or `pip install\nhttps://github.com/qwertyquerty/pypresence/archive/master.zip` use `pip3`\ninstead of `pip` if Python 2 still installed on your old machine.\n\nYou may want to check again, run command `mpv -v -V` and find `luajit` or `lua`\nword on the line which beginning with `[cplayer] List of enabled features:` for\nMac, Windows or Linux.\n\n---\n\n## Testing\n\n1. Open your Discord then,\n2. Open your mpv then,\n3. Back to Discord and then check your profile.\n\nGood Luck and have a nice day.\n\nFeedback: If you have question, problem or request, please make new issue or\ncontact me wachidadinugroho#7674 via Discord.\n\n[mpv]: https://mpv.io/installation/\n[discord]: https://discordapp.com/download\n[discord-rpc]: https://github.com/discordapp/discord-rpc\n[lua-discordRPC]: https://github.com/pfirsich/lua-discordRPC\n[pypresence]: https://github.com/qwertyquerty/pypresence\n[status-line]: https://github.com/mpv-player/mpv/raw/master/TOOLS/lua/status-line.lua\n[luajit]: http://luajit.org/\n[ext_ffi]: http://luajit.org/ext_ffi.html\n[lua]: https://www.lua.org/\n[mpv issue #1110]: https://github.com/mpv-player/mpv/issues/1110\n[mpv issue #5205]: https://github.com/mpv-player/mpv/issues/5205\n[lachs0r]: https://mpv.srsfckn.biz/\n[shinchiro]: https://sourceforge.net/projects/mpv-player-windows/files\n[python]: https://www.python.org/downloads/\n[asyncio]: https://docs.python.org/3/library/asyncio.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcniw%2Fmpv-discordRPC","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcniw%2Fmpv-discordRPC","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcniw%2Fmpv-discordRPC/lists"}