mirror of
https://github.com/Mastermindzh/tidal-hifi.git
synced 2025-09-13 23:29:28 +02:00
Compare commits
2 Commits
renovate/s
...
68c1ddf5a6
Author | SHA1 | Date | |
---|---|---|---|
|
68c1ddf5a6 | ||
|
ffcb563b35 |
@@ -60,8 +60,13 @@ const getActivity = (): Presence => {
|
||||
presence.state = mediaInfo.artists ? mediaInfo.artists : "unknown artist(s)";
|
||||
presence.largeImageKey = mediaInfo.image;
|
||||
if (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 {
|
||||
presence.details = `Watching ${mediaInfo.title}`;
|
||||
|
Reference in New Issue
Block a user