cniw / mpv-discordRPC

Discord Rich Presence integration for mpv Media Player
MIT License
133 stars 10 forks source link

Tried several things, couldn't get the script working. #11

Open xNinjaKittyx opened 4 years ago

xNinjaKittyx commented 4 years ago

Manjaro Linux 5.6.10-3 mpv 0.32.0 Lua 5.3.5

Running this script with -v, i see the following error...

[cplayer] Can't load unknown script: /home/user/.config/mpv/scripts/mpv-discordRPC

The scripts are correctly there. I tried referencing main.lua directly using --script=... but that ended up failing to import the catalogs.lua script.

Then I tried moving catalogs.lua and the other lua script into the PWD, I had the config file point to python, but for some reason it wasn't respecting the scripts-opt folder and tried to run the lua script (which failed because I don't have ffi installed).

I was wondering if this was related to https://github.com/mpv-player/mpv/issues/7399

cniw commented 4 years ago

Current script didn't works with stable mpv 0.32.0, i mention it here

mpv package from repo was builted with lua52 while if you use lua-discordRPC backend it wouldn't works because it need luajit package not ( lua51, lua52, even lua (5.3.x version) )

@xNinjaKittyx my recomendation, read this and then rebuild your own mpv package with custom PKGBUILD

hopefully this can solve your problem

indeedwatson commented 3 years ago

@cniw so to be clear, this doesn't work unless you build mpv yourself?

cniw commented 3 years ago

@indeedwatson yes

tnychn commented 3 years ago

For anyone who can't get this working or don't want to build mpv yourself, maybe you could check out my alternative version: https://github.com/tnychn/mpv-discord.

It's cross-platform and without any dependencies (no luajit and python needed), except a single Go binary which is already prebuilt in the repository. Though it does not support catalogs (planned feature?). Installer scripts for Windows, Linux and OSX are provided.

It was tested working with mpv v0.33.0 on OSX.