mirror of
https://github.com/Mastermindzh/tidal-hifi.git
synced 2024-11-22 05:23:09 +01:00
Merge pull request #450 from HurleybirdJr/master
Fix issue #449 Discord RPC stuck on "Browsing Tidal"
This commit is contained in:
commit
5b85e59fc3
@ -60,7 +60,12 @@ const getActivity = (): Presence => {
|
||||
presence.state = mediaInfo.artists ? mediaInfo.artists : "unknown artist(s)";
|
||||
presence.largeImageKey = mediaInfo.image;
|
||||
if (mediaInfo.album) {
|
||||
presence.largeImageText = mediaInfo.album;
|
||||
if (mediaInfo.album.length < 2) { // Fix for DiscordRPC 2 character minimum
|
||||
presence.largeImageText = mediaInfo.album + " ";
|
||||
}
|
||||
else {
|
||||
presence.largeImageText = mediaInfo.album;
|
||||
}
|
||||
}
|
||||
presence.buttons = [{ label: buttonText, url: mediaInfo.url }];
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user