mirror of
https://github.com/powerline/powerline.git
synced 2025-04-08 19:25:04 +02:00
fix spotify track length
This commit is contained in:
parent
d0d0644e3c
commit
5d8739b291
@ -341,7 +341,7 @@ class SpotifyAppleScriptPlayerSegment(PlayerSegment):
|
||||
set track_name to name of current track
|
||||
set artist_name to artist of current track
|
||||
set album_name to album of current track
|
||||
set track_length to duration of current track
|
||||
set track_length to round ((duration of current track) / 1000) rounding down
|
||||
set now_playing to "" & player state & "{0}" & album_name & "{0}" & artist_name & "{0}" & track_name & "{0}" & track_length
|
||||
return now_playing
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user