Skip to content
This repository has been archived by the owner on Aug 23, 2024. It is now read-only.

Commit

Permalink
Add unknown check for mpris track id (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffvli committed Jul 15, 2022
1 parent fcd6079 commit 645c2eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed certain UI elements from being drag selectable (#350) (Thanks @GermanDarknes)
- Fixed application occasionally being invisible due to invalid persisted window settings (#278)
- Fixed spanish translation (#333) (Thanks @ami-sc)
- Fixed MPRIS Javascript error due to missing song id on Linux (#251)

[0.15.2] - 2022-06-02

Expand Down
2 changes: 1 addition & 1 deletion src/main.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ if (isLinux()) {
}

mprisPlayer.metadata = {
'mpris:trackid': mprisPlayer.objectPath(`track/${arg.id?.replace('-', '')}`),
'mpris:trackid': arg?.id ? mprisPlayer.objectPath(`track/${arg.id?.replace('-', '')}`) : '',
'mpris:length': arg.duration ? Math.round((arg.duration || 0) * 1e6) : null,
'mpris:artUrl': arg.image.includes('placeholder') ? null : arg.image,
'xesam:title': arg.title || null,
Expand Down

0 comments on commit 645c2eb

Please sign in to comment.