-
-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discord Rich Presence : Display album cover #341
Comments
The problem with the existing implementation (that Sonixd used) is that this would only work only Jellyfin and if it is publicly accessible via reverse proxy. I'm thinking of adding an integration with lastfm to fetch and display the image from them rather than use the server itself. |
In addition to Last.FM, if you have MusicBrainz information embedded in the file (and you're able to read it), then you could use the Cover Art Archive as a possible fallback. |
Both retrieving album covers from LastFM or MusicBrainz are good ideas I think. I'd like to suggest another idea on how to achieve this. Before switching to Navidrome and Feishin I used MusicBee and the Discord Rich Presence plugin achieved showing album covers by uploading them to Imgur. The source can be found here. |
LastFM is probably the best way, as it's in my experience pretty fast (made an RPC client for LastFM). |
Since it's been a couple months since this issue was active, I'll just put this here in case anyone's wondering how to re-enable this feature. As a temporary (and very hacky) solution, I've found a hidden option in settings that re-enables the behaviour from sonixd where the discord rpc is updated with the track's cover image (only on jellyfin servers accessible via reverse proxy). Currently working on 0.7.1. To enable this option paste the following into the console in developer tools (Ctrl+Shift+I): let modifiableSettings = JSON.parse(localStorage.store_settings);
modifiableSettings.state.discord.showServerImage = true; // replace with false to disable option
localStorage.store_settings = JSON.stringify(modifiableSettings); This directly modifies the settings state in local storage, so far I haven't had any issues with it, but idk what I'm doing so run it at your own risk lol. |
While that's true, I'd assume that imgur has an API endpoint to delete an image (similar to how they allow it on the web frontend), so that could be called when the track/album playback has ended. However, I do agree that this is probably not an ideal solution. |
I've created a PR with basic functionality: #817 Works perfectly, just requires a Last.fm API key. |
For people who do have Jellyfin behind a reverse proxy, is it still possible to show art through that? I have some albums with tracks that have individual song covers that are different from each other, which last.fm doesn't support to my knowledge. |
Yeah, works fine for me (nginx with SSL using Cloudflare, jellyfin 10.9.11). I think as long as discord can resolve the image URL it'll be fine. |
Jellyfin 10.9.11, SSL using Let's Encrypt, image URL copied from the web UI embeds in Discord just fine. However, enabling |
@Infinidoge I have the same demand as yours. What is this |
@UlyssesZh See #341 (comment). |
Hello !
Is it possible to display album cover in the Discord Rich Presence ? I remember it worked with Jellyfin on Sonixd 😄
The text was updated successfully, but these errors were encountered: