Skip to content

Commit

Permalink
Merge pull request #413 from waylyrics/master
Browse files Browse the repository at this point in the history
feat qier222#2056: add `xesam:url` field for MPRIS
  • Loading branch information
shih-liang committed Dec 17, 2023
2 parents 5e459bd + 6093080 commit 90a57c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/electron/mpris.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export function createMpris(window) {
'xesam:title': metadata.title,
'xesam:album': metadata.album,
'xesam:artist': metadata.artist.split(','),
'xesam:url': metadata.url,
};
});

Expand Down
1 change: 1 addition & 0 deletions src/utils/Player.js
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,7 @@ export default class {
],
length: this.currentTrackDuration,
trackId: this.current,
url: '/trackid/' + track.id,
};

navigator.mediaSession.metadata = new window.MediaMetadata(metadata);
Expand Down

0 comments on commit 90a57c3

Please sign in to comment.