adding playing time for a playlist
This commit is contained in:
+4
-1
@@ -984,11 +984,14 @@
|
||||
'name (browser-entry-name entry)
|
||||
'kind (symbol->string (browser-entry-kind entry))))
|
||||
|
||||
;;; Include the sum of known track durations in each tab's browser summary.
|
||||
(define (tab->jsexpr tab index)
|
||||
(hasheq 'index index
|
||||
'id (playlist-tab-id tab)
|
||||
'name (playlist-tab-name tab)
|
||||
'count (length (playlist-tab-tracks tab))))
|
||||
'count (length (playlist-tab-tracks tab))
|
||||
'duration (apply + (map (λ (item) (or (track-duration item) 0))
|
||||
(playlist-tab-tracks tab)))))
|
||||
|
||||
(define (normal-device-id device)
|
||||
(let ((id (upnp-device-udn device)))
|
||||
|
||||
Reference in New Issue
Block a user