[PR #9] [MERGED] Add proper timestamp support #854

Closed
opened 2026-05-23 00:58:24 +01:00 by JakeStanger · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/JakeStanger/mpd-discord-rpc/pull/9
Author: @JakeStanger
Created: 10/11/2020
Status: Merged
Merged: 10/14/2020
Merged by: @JakeStanger

Base: masterHead: feat/timestamps


📝 Commits (4)

  • 6f395aa chore: update lockfile
  • d040b67 feat: support displaying proper timestamps
  • 340a20e style: run cargo fmt
  • bf0c246 refactor: improve format option unwrapping

📊 Changes

6 files changed (+60 additions, -19 deletions)

View changed files

📝 Cargo.lock (+7 -7)
📝 README.md (+10 -3)
📝 src/config.rs (+4 -1)
📝 src/defaults.rs (+1 -0)
📝 src/main.rs (+14 -8)
📝 src/mpd_conn.rs (+24 -0)

📄 Description

Discord's proper timestamp feature is now leveraged to display either the elapsed or remaining time on a new line.

[format]
# ...
timestamp = "elapsed"

This can be one of elapsed, left or off. It will default to elapsed if the value does not match one of the options, or the key is not present.

Resolves #6 which is caused by limitations in the RPC client.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/JakeStanger/mpd-discord-rpc/pull/9 **Author:** [@JakeStanger](https://github.com/JakeStanger) **Created:** 10/11/2020 **Status:** ✅ Merged **Merged:** 10/14/2020 **Merged by:** [@JakeStanger](https://github.com/JakeStanger) **Base:** `master` ← **Head:** `feat/timestamps` --- ### 📝 Commits (4) - [`6f395aa`](https://github.com/JakeStanger/mpd-discord-rpc/commit/6f395aac7f04fd67498f962ddd1017f5ec6ffc37) chore: update lockfile - [`d040b67`](https://github.com/JakeStanger/mpd-discord-rpc/commit/d040b67949f65b174fb251dac924d61b3f11ba61) feat: support displaying proper timestamps - [`340a20e`](https://github.com/JakeStanger/mpd-discord-rpc/commit/340a20e1600e91d552ef57738116fd02eb50f3e6) style: run cargo fmt - [`bf0c246`](https://github.com/JakeStanger/mpd-discord-rpc/commit/bf0c246218cd4f17651f0b151aff19e30d2a903a) refactor: improve format option unwrapping ### 📊 Changes **6 files changed** (+60 additions, -19 deletions) <details> <summary>View changed files</summary> 📝 `Cargo.lock` (+7 -7) 📝 `README.md` (+10 -3) 📝 `src/config.rs` (+4 -1) 📝 `src/defaults.rs` (+1 -0) 📝 `src/main.rs` (+14 -8) 📝 `src/mpd_conn.rs` (+24 -0) </details> ### 📄 Description Discord's proper timestamp feature is now leveraged to display either the elapsed or remaining time on a new line. ```toml [format] # ... timestamp = "elapsed" ``` This can be one of `elapsed`, `left` or `off`. It will default to `elapsed` if the value does not match one of the options, or the key is not present. Resolves #6 which is caused by limitations in the RPC client. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
JakeStanger 2026-05-23 00:58:24 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
JakeStanger/mpd-discord-rpc#854
No description provided.