Dyvinia / PlexampRPC

PlexampRPC displays currently playing Plex music as Discord Rich Presence, while using the proper Album Art
37 stars 3 forks source link

PlexampRPC struggling with album name having lesser than 2 characters. #6

Closed Azuriye closed 1 year ago

Azuriye commented 1 year ago

The title should pretty much explain the issue. I found this out after trying out an album with only one character. PlexampRPC wasn't reflecting the album and song on Discord after which the Debug console gave more insight as to what could be potentially causing the issue.

[21:29:32] ERR : Error received from the RPC
[21:29:32] ERR : Server responded with an error message: (InvalidPayload) child "activity" fails because [child "assets" fails because [child "large_text" fails because ["large_text" length must be at least 2 characters long]]]
[21:29:44] ERR : Error received from the RPC
[21:29:44] ERR : Server responded with an error message: (InvalidPayload) child "activity" fails because [child "assets" fails because [child "large_text" fails because ["large_text" length must be at least 2 characters long]]]
[21:30:03] ERR : Error received from the RPC
[21:30:03] ERR : Server responded with an error message: (InvalidPayload) child "activity" fails because [child "assets" fails because [child "large_text" fails because ["large_text" length must be at least 2 characters long]]]
[21:30:11] ERR : Error received from the RPC
[21:30:11] ERR : Server responded with an error message: (InvalidPayload) child "activity" fails because [child "assets" fails because [child "large_text" fails because ["large_text" length must be at least 2 characters long]]]
[21:30:23] Cleared Presence
[21:30:29] ERR : Error received from the RPC
[21:30:29] ERR : Server responded with an error message: (InvalidPayload) child "activity" fails because [child "assets" fails because [child "large_text" fails because ["large_text" length must be at least 2 characters long]]]
[21:30:31] Updated Presence to [中山新 - 幻想万華鏡~霊夢暗殺計画の章~オリジナル・サウンドトラック | 衝撃の真紅]
[21:30:39] Cleared Presence
Dyvinia commented 1 year ago

try the latest update to see if its fixed

Azuriye commented 1 year ago

try the latest update to see if its fixed

Sorry for the late reply, the issue persists... here are the new logs.

[22:46:41] ERR : Error received from the RPC
[22:46:41] ERR : Server responded with an error message: (InvalidPayload) child "activity" fails because [child "assets" fails because [child "large_text" fails because ["large_text" length must be at least 2 characters long]]]

The issue here is that the album I'm listening to is only one Unicode character big. Is it possible to just have a minimum of 1 character?

Dyvinia commented 1 year ago

Should be fixed now

Azuriye commented 10 months ago

Hello, can you re-open this issue? It works as intended but with albums having only a single Unicode character, it seems to reproduce the above issue. I'm not sure if it is appropriate to consider albums with a single Unicode character but there are such albums and I'm not sure if you could consider this. Just linking one of such albums here.

https://thwiki.cc/%E6%85%84