]> git.sesse.net Git - vlc/blobdiff - share/http/js/functions.js
HTTP interface: Display estimated item time when available.
[vlc] / share / http / js / functions.js
index eeac8f966e49e3813b5bed138d98d0a116818c38..e1a0031852bd2972d2ad77e77219b04729b617b1 100644 (file)
@@ -557,6 +557,9 @@ function parse_playlist()
                     }
                     pl.setAttribute( 'title', elt.getAttribute( 'uri' ));
                     pl.appendChild( document.createTextNode( elt.getAttribute( 'name' ) ) );
+                    var duration = elt.getAttribute( 'duration' );
+                    if( duration > 0 )
+                        pl.appendChild( document.createTextNode( " (" + format_time( elt.getAttribute( 'duration' ) / 1000000 ) + ")" ) );
                     pos.appendChild( pl );
 
                     if( elt.getAttribute( 'ro' ) == 'rw' )