Skip to content

Commit

Permalink
Merge pull request stark81#18 from waylyrics/mpris-url-trackid
Browse files Browse the repository at this point in the history
feat(mpris): Add `xesam:url` field (#2095)
  • Loading branch information
stark81 authored Mar 14, 2024
2 parents 820b955 + ddbe5e2 commit 7a59e48
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 @@ -666,6 +666,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 7a59e48

Please sign in to comment.