fix other places of duration display (and other minor fixes) (#249)

* fix other places of duration display

* add back comma

* add max-width for image
This commit is contained in:
Kendall Garner 2023-09-20 23:07:40 +00:00 committed by GitHub
parent ec457d5125
commit 6e62448b88
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 4 deletions

View file

@ -145,7 +145,7 @@ ipcMain.on('update-song', (_event, args: SongUpdate) => {
mprisPlayer.metadata = {
'mpris:artUrl': upsizedImageUrl,
'mpris:length': song.duration ? Math.round((song.duration || 0) * 1e6) : null,
'mpris:length': song.duration ? Math.round((song.duration || 0) * 1e3) : null,
'mpris:trackid': song.id
? mprisPlayer.objectPath(`track/${song.id?.replace('-', '')}`)
: '',