FichteFoll / discordrp-mpris

Discord Rich Presence through media players providing the mpris2 dbus interface
MIT License
86 stars 19 forks source link

Automatically truncate titles to 128 characters #20

Closed azizLIGHT closed 2 years ago

azizLIGHT commented 3 years ago

If the title length of a song or movie is too long, then nothing is shown. Essentially it fails with error and outputs nothing. Instead, it should give the user an option to truncate a long title to the maximum length of characters and show that, I think thats better than showing nothing.

ERROR:discordrp_mpris.__main__:Error setting activity: child "activity" fails because [child "details" fails because ["details" length must be less than or equal to 128 characters long]]