twnlink / neptune-plugins

My plugins for the TIDAL client mod, uwu/neptune.
19 stars 6 forks source link

fix: fix issue where one letter albums would crash the discordrpc plugin #10

Closed andregamma closed 3 months ago

andregamma commented 4 months ago

Addresses the issue discussed in #5.

Discord requires largeImageText to be at least 2 characters long, so we need to fill the text with an invisible character if the content length is less than 2.

I don't think there is a case where an album title or song title don't have at least one letter, so I though one invisible character is enough to accomplish the requirement.

Also added a comment in the code for clarification.