Ombrelin / plex-rich-presence

A desktop app to enable discord rich presence for your Plex Media Server Activity
MIT License
188 stars 15 forks source link

Include the name of the played movie or series in the status #48

Closed AaronWiora closed 3 years ago

AaronWiora commented 3 years ago

Would it be possible to show the played movie or tv-show directly in the status message? Instead of "Playing Plex" it would be "is watching 'The Office'". This way, people who are to lazy to click on the status (or don't know this is an option) will know what is being played.

Discord added the option so set a custom status some time ago but does the API allow applications to change it?

AaronWiora commented 3 years ago

Now that I think about it: Spotify also doesn't show the song that is played so maybe this is the gold standard. So I guess this issue can be closed.

Ombrelin commented 3 years ago

Hello,

sadly, the rich presence API does not offer this capability. I have no ability to control the text displayed in the "Playing XXX" mention at runtime, since it display the name of the application that I have registered on discord's dev platform to be able to use the API. The rich presence API was originally designed for games that's it shows "playing" which believe me I would have replaced galdly with "Listening" or "Watching" if I could

Ombrelin commented 3 years ago

Yes and even Spotify can do thing that I can't (like display the song progress bar) so I think they have a special partnership with discord for that

Ombrelin commented 3 years ago

I will then close this issue for now, but let's hope some day discord will update the rich presence API to be more friendly with non-game usages

indianpoptart commented 3 years ago

Hey, I know you are using a java lib for the RPC, but after some digging, it seems they have an ActivityType enum to their GameSDK

I assume this would require a rewrite since RPC is deprecated GameSDK

Ombrelin commented 3 years ago

Hey ! That's really intersting. I plan to do a rewrite anyway using .NET, so I'll definetly look into the GameSDK. Thank you for bringing that to my attention ! I plan to start the rewrite by august, I'll keep you posted.

indianpoptart commented 3 years ago

That's awesome! I'll see if I can find any .NET related documentation for GameSDK and let you know what I find.

Cheers!

Edit: Looks like the GameSDK is using C#, so does that mean .NET shouldn't be too challenging? Or was this your reason for rewriting in .NET