th-ch / youtube-music

YouTube Music Desktop App bundled with custom plugins (and built-in ad blocker / downloader)
https://th-ch.github.io/youtube-music/
MIT License
8.23k stars 483 forks source link

[Bug]: Discord RPC not showing up #1664

Closed mel-edo closed 7 months ago

mel-edo commented 8 months ago

Preflight Checklist

YouTube Music (Application) Version

3.2.2

Checklists

What operating system are you using?

Other Linux

Operating System Version

Arch linux

What arch are you using?

x64

Last Known Working YouTube Music (Application) version

2.0.2

Reproduction steps

  1. Enable discord plugin

Expected Behavior

discord rpc should show up on discord

Actual Behavior

Nothing comes up on discord

Enabled plugins

  1. Adblocker
  2. Compact sidebar
  3. in-app menu
  4. navigation
  5. notifications

Additional Information

The rpc seems to be working on v 2.0.2 appimage version. But I can't seem to get the rpc working on the later versions and the latest version. I'm using youtube-music bin on the AUR also.

ArjixWasTaken commented 8 months ago

Is discord installed using pacman (or an AUR helper) or flatpak? flatpak applications run isolated iirc

mel-edo commented 8 months ago

discord is installed using pacman

rocord01 commented 7 months ago

I am having this same issue, but on windows. Here is a screenshot from devtools on my Discord client. image

Request JSON:

{
    "cmd": "SET_ACTIVITY",
    "args": {
        "pid": 22620,
        "activity": {
            "details": "Notice",
            "state": "Moe Shop & TORIENA",
            "buttons": [],
            "assets": {
                "large_image": "https://i.ytimg.com/vi/F9Ay74LfKd4/hq720.jpg"
            },
            "timestamps": {
                "start": 1707260053543,
                "end": 1707260242543
            },
            "instance": false
        }
    },
    "nonce": "4d6e9554-3764-4464-8ea8-14174a73cb0d"
}

Response JSON:

{
    "cmd": "SET_ACTIVITY",
    "data": {
        "code": 4000,
        "message": "child \"activity\" fails because [child \"buttons\" fails because [\"buttons\" must contain at least 1 items]]"
    },
    "evt": "ERROR",
    "nonce": "4d6e9554-3764-4464-8ea8-14174a73cb0d"
}
JellyBrick commented 7 months ago

@rocord01 Thank you for the detailed report!