summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/MediaPlayer.qml4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/MediaPlayer.qml b/app/MediaPlayer.qml
index 92e9f39..b287c8a 100644
--- a/app/MediaPlayer.qml
+++ b/app/MediaPlayer.qml
@@ -64,7 +64,9 @@ ApplicationWindow {
player.title = track.title
player.album = track.album
player.artist = track.artist
- player.duration = track.duration
+
+ if ('duration' in track)
+ player.duration = track.duration
if ('index' in track) {
playlistview.currentIndex = track.index