jellyfin / jellyfin-mpv-shim

MPV Cast Client for Jellyfin
Other
1.66k stars 95 forks source link

Discord IPC not working #279

Open kekonn opened 2 years ago

kekonn commented 2 years ago

Describe the bug PyPresence reports that it cannot find discord, but other libraries and clients have no problem connecting.

The only thing I can think of is that it tries to connect to Discord before Discord is running (based on the timing in the logs). But in that case, why is it trying to connect before the player window is needed?

To Reproduce Steps to reproduce the behavior:

  1. Enable Rich Presence integration
  2. Restart
  3. Watch some content and check the logs

Expected behavior My discord status being updated with the content that's being played

Screenshots N/A

Desktop (please complete the following information):

Error Messages Please provide logs, as they are often needed for me to understand and quickly troubleshoot the issue. You can read instructions for how to do so here: https://github.com/iwalton3/jellyfin-mpv-shim/wiki/Sending-Logs

1:2022-06-29 18:29:57,183 [   ERROR] player: Could not enable Discord Rich Presence.
10:    raise DiscordNotFound
11:pypresence.exceptions.DiscordNotFound: Could not find Discord installed and running on this machine.

Full log here

kekonn commented 1 year ago

I have tracked this down to discord simply not being open when the shim starts. Could you change the code to poll for the discord socket instead of only checking once on startup?