Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xNinjaKittyx opened this issue May 13, 2020 · 4 comments
Open

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

xNinjaKittyx opened this issue May 13, 2020 · 4 comments

Comments

@xNinjaKittyx
Copy link

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 mpv-player/mpv#7399

@cniw
Copy link
Owner

cniw commented May 13, 2020

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
Copy link

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

@cniw
Copy link
Owner

cniw commented Oct 21, 2020

@indeedwatson yes

@tnychn
Copy link

tnychn commented Jan 31, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants