yutotakano / mpvcord

Discord Game Activity integration for mpv video player. Uses the Game SDK. Heavily customisable with superficial Lua knowledge.
Other
12 stars 0 forks source link

[Feature Request] Set audio albumart as presence big image #4

Open NaiveInvestigator opened 2 years ago

NaiveInvestigator commented 2 years ago

I heard Discord now allows setting custom images as big and small images by setting a URL instead of the name of the art asset.

PreMid has successfully implemented this too.

If we could add a function that uses the title of the song and grab links of album artwork from iTunes Store and then display it would be awesome! Not really sure how to implement that tho.

yutotakano commented 2 years ago

Oh that's interesting, this was never possible before. I'm a bit busy right now but will take a look into it in a few days. From a quick search, there doesn't seem to be a ton of info apart from the quite-bare official docs, so I think I'll have to experiment around.

I might just be dumb and looking at a wrong PreMid repo, but I cannot seem to find any commits that made the implementation (in fact, all the changes I see recently are just dependency upgrades) -- do you happen to have a link to their codebase that I can reference?

NaiveInvestigator commented 2 years ago

I did hear that it was a undocumented Discord API so we'll have to take it with a grain of salt, This tweet is my source.

It is not very helpful (sorry :<) but I'll dig around to see for the actual code that was used to implement this.

Edit: I think it is this rep where they implemented, https://github.com/PreMiD/Presences

NaiveInvestigator commented 1 year ago

update on that, a mpv script managed to do it. I think it might be helpful to post it here too.

https://github.com/ryze312/mpv-rpc

Here's hoping it will get implemented someday!

Stay safe!