Skip to content

Commit 2e83ff7

Browse files
feat: standardize music display format for playing and paused states (#24)
Make listening status format consistent between playing and paused states. Now both show: title first, then artist with 'by' prefix for better readability. Co-authored-by: Andrew Kornder <40525838+andrewkornder@users.noreply.github.com>
1 parent 262671c commit 2e83ff7

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

.changeset/config.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,8 @@
44
"commit": false,
55
"fixed": [],
66
"linked": [],
7-
"access": "public",
7+
"access": "restricted",
88
"baseBranch": "main",
99
"updateInternalDependencies": "patch",
10-
"ignore": [],
11-
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
12-
"onlyUpdatePeerDependentsWhenOutOfRange": true
13-
}
10+
"ignore": []
1411
}

.changeset/sixty-boxes-take.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"vlc-rpc": minor
3+
---
4+
5+
Make listening status format consistent between playing and paused states

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"changeset:publish": "changeset publish"
4444
},
4545
"dependencies": {
46+
"@changesets/cli": "^2.29.6",
4647
"@ctrl/video-filename-parser": "^5.4.0",
4748
"@electron-toolkit/preload": "^3.0.1",
4849
"@electron-toolkit/utils": "^4.0.0",

src/main/services/media-state.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ class PlayingState extends MediaState {
6363

6464
if (activityType === ActivityType.Listening) {
6565
// For music, put artist in details and song in state for better visibility
66-
details = media.artist || "Unknown Artist"
67-
state = media.title || "Unknown Song"
66+
details = media.title || "Unknown Song"
67+
state = `by ${media.artist || "Unknown Artist"}`
6868
} else {
6969
// For video content, analyze the video and provide richer information
7070
const videoAnalyzer = VideoAnalyzerService.getInstance()

0 commit comments

Comments
 (0)