mirror of
https://github.com/JakeStanger/mpd-discord-rpc.git
synced 2026-07-11 10:15:28 +01:00
[PR #9] [MERGED] Add proper timestamp support #1652
Labels
No labels
bug
enhancement
help wanted
package
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
JakeStanger/mpd-discord-rpc#1652
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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:
master← Head:feat/timestamps📝 Commits (4)
6f395aachore: update lockfiled040b67feat: support displaying proper timestamps340a20estyle: run cargo fmtbf0c246refactor: 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.
This can be one of
elapsed,leftoroff. It will default toelapsedif 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.