This problem is shown with a script which used to work ok but with 2.7.0 there's a change, has the amarok api has changed somewhere? - using the random album script of Marcelo Vanzin (version 1.0) which adds a 'Enqueue Random Album' to the tools menu. When I do that a random album is added to the playlist, the number of tracks in the playlist is updated correctly but the length of the playlist is not updated. - the error becomes more marked if you then remove the album you just added (using amarok basic functionality) when the length of playlist can become rather short (I had 21 tracks with a total length of 6 minutes with one track of 26 mins) - the problem is in the previous point this just illustrates the consequences. Reproducible: Always
likely related to bug 281143
I can confirm with v2.8.0.
I have the same issue with a custom javascript script that uses Amarok.Playlist.addMedia(): no playlist duration/length is displayed at all, even if the playlist count is displayed and correct. My current workaround is to save the playlist, clear it, and reload it from the saved one. In this case it's finally correctly displayed.
*** This bug has been marked as a duplicate of bug 281143 ***