cniw / mpv-discordRPC

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

After recent changes I get this error messages in console #10

Closed XCanG closed 4 years ago

XCanG commented 4 years ago

Log (colorized):

- Can't load unknown script: C:\Users\X4\AppData\Roaming/mpv/scripts/mpv-discordRPC_pypresence.py
! [mpv_discordRPC] script-opts/mpv_discordRPC.conf:21 unknown key mpv_version, ignoring
[mpv_discordRPC] Discord Rich Presence integration for mpv Media Player
[mpv_discordRPC] Upstream: https://github.com/cniw/mpv-discordRPC
[mpv_discordRPC2] Discord Rich Presence integration for mpv Media Player
[mpv_discordRPC] Version: 1.4.1
[mpv_discordRPC2] Upstream: https://github.com/cniw/mpv-discordRPC
[mpv_discordRPC2] Version: 1.4.1-UNKNOWN

I have no issues with using python version (tried it as well before), but I still use lua, however mpv now after update throwing errors about this file. Also it have some problems with mpv_version variable, may be need to rename it?

cniw commented 4 years ago

@XCanG sorry, slow response.

It seems two scripts running

[mpv_discordRPC] script-opts/mpv_discordRPC.conf:21 unknown key mpv_version, ignoring this error message caused by the old script trying to load the new file configuration

So the solution is just need to delete the old script file, it located at scripts/mpv-discordRPC.lua

New script file moved to scripts/mpv-discordRPC/main.lua, related commit https://github.com/cniw/mpv-discordRPC/commit/c9f7443b8d13df0b80d0e329490bbd798f566390

hopefully this can solve your problem.

XCanG commented 4 years ago

Yeh, looks like script moved into subfolder and I didn't notice that. Remove old files and error is gone.