@@ -176,7 +176,11 @@ static void updateDiscordPresence(int playback_status, float song_len) {
176176
177177 // misc
178178 discordPresence .largeImageKey = "default" ;
179- //discordPresence.smallImageKey = 0;
179+ discordPresence .smallImageKey = 0 ;
180+ if (playback_status == STATUS_PAUSED ) {
181+ if (deadbeef -> conf_get_int ("discord_presence.paused_icon" , 1 ))
182+ discordPresence .smallImageKey = "paused_circle" ;
183+ }
180184 //discordPresence.partyId = 0;
181185 //discordPresence.matchSecret = 0;
182186 //discordPresence.joinSecret = 0;
@@ -267,14 +271,15 @@ static const char settings_dlg[] =
267271 "property \"Overwrite state format with playlist name\" checkbox discord_presence.playlist_on_state 0;\n"
268272 "property \"Display track number/total track count \" checkbox discord_presence.show_tracknum 1;\n"
269273 "property \"Switch time elapsed to remaining time\" checkbox discord_presence.end_timestamp 0;\n"
270- "property \"Icon text format\" entry discord_presence.icon_script \"%artist% \'/\' %album%\";\n" ;
274+ "property \"Icon text format\" entry discord_presence.icon_script \"%artist% \'/\' %album%\";\n"
275+ "property \"Show paused icon\" checkbox discord_presence.paused_icon 1;\n" ;
271276
272277DB_misc_t plugin = {
273278 .plugin .api_vmajor = 1 ,
274279 .plugin .api_vminor = 10 ,
275280 .plugin .type = DB_PLUGIN_MISC ,
276- .plugin .version_major = 0 ,
277- .plugin .version_minor = 9 ,
281+ .plugin .version_major = 1 ,
282+ .plugin .version_minor = 0 ,
278283 .plugin .id = "discord_presence" ,
279284 .plugin .name = "Discord Rich Presence Plugin" ,
280285 .plugin .descr = "Discord Rich Presence Plugin shows your current playing track on your Discord status.\n"
0 commit comments