Skip to content

Commit 2afd18a

Browse files
committed
Fixed Rhythmbox issue
1 parent a12021c commit 2afd18a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extension.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ const updateData = (player, _playerState, _title, _artist) => {
103103
lastStateChanged = true;
104104
}
105105
if ([_title, _artist] !== lastMetadata) {
106-
displayText = `${_title} - ${_artist}`;
106+
displayText = `${_title}${_artist ? " - " + _artist : ""}`;
107107
displayText =
108108
displayText.length > maxDisplayLength
109109
? displayText.substring(0, maxDisplayLength - 3) + "..."
@@ -132,7 +132,7 @@ const updatePlayer = async () => {
132132
_metadataPromise,
133133
]);
134134
// log("Promises resolved");
135-
if (_title && _artist) {
135+
if (_title) {
136136
playerStateMap.push([player, _playerState]);
137137
playerDataMap[player] = {
138138
_title,

0 commit comments

Comments
 (0)