From 5d8739b2914a98803b741a22962d56b346602706 Mon Sep 17 00:00:00 2001 From: Arslan Ablikim Date: Tue, 8 Aug 2017 12:08:37 +0800 Subject: [PATCH] fix spotify track length --- powerline/segments/common/players.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerline/segments/common/players.py b/powerline/segments/common/players.py index eb32f267..738b91af 100644 --- a/powerline/segments/common/players.py +++ b/powerline/segments/common/players.py @@ -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