mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 02:13:33 +00:00
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:
parent
ec457d5125
commit
6e62448b88
4 changed files with 5 additions and 4 deletions
|
|
@ -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('-', '')}`)
|
||||
: '',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue