tnychn / mpv-discord

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

Show the file name in the RPC instead of file-tag #34

Open neemanthnub opened 2 years ago

neemanthnub commented 2 years ago

I was wondering if its possible to show the file name instead of the file tag in the RPC like in https://github.com/noaione/mpv-discordRPC ( this is the line


    -- Use media-title for video not filename/no-ext```)
If not for everyone can i make any change in the discord.lua file and make this work?
Here's a few screenshots
![mpv_b0SUh2NHTK](https://user-images.githubusercontent.com/92370174/154835718-99029f39-512e-42cb-aef9-1c34e297a5e9.png)
![Discord_wDKfoXb2AD](https://user-images.githubusercontent.com/92370174/154835715-e82ba75a-79f4-4e17-bd09-fc8a5d155f7a.png)
![explorer_gEJPm1OXwP](https://user-images.githubusercontent.com/92370174/154835716-ccd6ce43-0838-453a-af90-4ef1cc48b6b2.png)

As you can see in the 3rd picture, `[Reza] My Dress-Up Darling - S01E07.mkv` is the file name but the rpc shows the file tag