We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c0010e commit bc2b148Copy full SHA for bc2b148
discord_presence.c
@@ -183,6 +183,21 @@ updateDiscordPresence (void *_) {
183
discordPresence.partySize = nowplaying_num;
184
discordPresence.partyMax = nowplaying_all;
185
186
+ // HACK: disable timestamp if seeked but paused
187
+ if (playback_status == STATUS_SEEKED) {
188
+ if (deadbeef->get_output() &&
189
+ deadbeef->get_output()->state() != DDB_PLAYBACK_STATE_PLAYING) {
190
+ playback_status = STATUS_PAUSED;
191
+ if (deadbeef->conf_get_int("discord_presence.hide_on_pause", 1)) {
192
+ Discord_ClearPresence();
193
+ free(title_text);
194
+ free(state_text);
195
+ free(icon_text);
196
+ return;
197
+ }
198
199
200
+
201
// time played
202
discordPresence.startTimestamp = 0;
203
discordPresence.endTimestamp = 0;
0 commit comments