tnychn / mpv-discord

🎈 A cross-platform Discord Rich Presence integration for mpv with no external dependencies.
MIT License
172 stars 14 forks source link

Display File Name Instead of the Title #39

Open stewieboo opened 2 years ago

stewieboo commented 2 years ago

I don't want to convert my mkv files just to edit the video titles. Can you please make it so the RPC only displays the file name instead of its title?

Reinbowsaur commented 2 years ago

I could modify and share a compiled go file... but it seems like it could be interpreted as dodgy so I'll tell you what to change instead, as for compiling its pretty easy just look up a video.

https://github.com/tnychn/mpv-discord/blob/663f0e3ee1fa81c9833444d9bd8e40583e39bb29/mpv-discord/main.go#L47 to this activity.Details = getPropertyString("filename")