[PR #259] [MERGED] feat: configurable activity button for searching active song on another platform #1061

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

📋 Pull Request Information

Original PR: https://github.com/JakeStanger/mpd-discord-rpc/pull/259
Author: @ReallyWeirdCat
Created: 1/21/2026
Status: Merged
Merged: 1/24/2026
Merged by: @JakeStanger

Base: masterHead: master


📝 Commits (3)

  • 828b94a feat: configurable activity button for searching active song on another platform
  • 7ec612d refactor: remove button_enabled parameter and implement support for two buttons
  • b1920e8 doc: update readme to document button configuration

📊 Changes

3 files changed (+71 additions, -3 deletions)

View changed files

📝 README.md (+9 -1)
📝 src/config.rs (+12 -0)
📝 src/main.rs (+50 -2)

📄 Description

Really liked the project, thought about rich presence buttons.

Seen discussion in this issue and decided to make a simpler implementation while there isn't anything else. This basically makes a configurable search query link to a preferred platform in hopes that people will be able to find the song there.

The 3 new parameters are generated in the config by default:

[format]
button_enabled = true
button_text = "Search on YouTube"
button_link = "https://www.youtube.com/results?search_query=$artist - $title"

Here's how it may look like:
image

image

If disabled or text/link aren't specified, the button will not be added.


🔄 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/259 **Author:** [@ReallyWeirdCat](https://github.com/ReallyWeirdCat) **Created:** 1/21/2026 **Status:** ✅ Merged **Merged:** 1/24/2026 **Merged by:** [@JakeStanger](https://github.com/JakeStanger) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (3) - [`828b94a`](https://github.com/JakeStanger/mpd-discord-rpc/commit/828b94a2fa2b05c97f466f361451c27817042084) feat: configurable activity button for searching active song on another platform - [`7ec612d`](https://github.com/JakeStanger/mpd-discord-rpc/commit/7ec612dcd8561de6500f9b59d35ea6c1d74f3693) refactor: remove button_enabled parameter and implement support for two buttons - [`b1920e8`](https://github.com/JakeStanger/mpd-discord-rpc/commit/b1920e81df223ff590cd98c42a4e80681f97ae36) doc: update readme to document button configuration ### 📊 Changes **3 files changed** (+71 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+9 -1) 📝 `src/config.rs` (+12 -0) 📝 `src/main.rs` (+50 -2) </details> ### 📄 Description Really liked the project, thought about rich presence buttons. Seen discussion in this [issue](https://github.com/JakeStanger/mpd-discord-rpc/issues/32) and decided to make a simpler implementation while there isn't anything else. This basically makes a configurable search query link to a preferred platform in hopes that people will be able to find the song there. The 3 new parameters are generated in the config by default: ```toml [format] button_enabled = true button_text = "Search on YouTube" button_link = "https://www.youtube.com/results?search_query=$artist - $title" ``` Here's how it may look like: <img width="612" height="279" alt="image" src="https://github.com/user-attachments/assets/0dbd8f9b-9684-4f01-89fe-573fbffe1127" /> <img width="1753" height="794" alt="image" src="https://github.com/user-attachments/assets/585f6a7c-363f-455d-ab01-2310aba4b5cd" /> If disabled or text/link aren't specified, the button will not be added. --- <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:56 +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#1061
No description provided.