Bug 313971

Summary: playlist length no longer updated on using the random album script
Product: [Applications] amarok Reporter: robert marshall <robert>
Component: PlaylistAssignee: Amarok Bugs <amarok-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: e.m.a.t.i.r.o.v, kiwiiii, teo
Priority: NOR    
Version First Reported In: 2.7.0   
Target Milestone: 2.8   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description robert marshall 2013-01-27 12:58:46 UTC
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
Comment 1 Myriam Schweingruber 2013-01-27 16:36:56 UTC
likely related to bug 281143
Comment 2 Mikhail Ivchenko 2013-12-04 10:10:27 UTC
I can confirm with v2.8.0.
Comment 3 kiwiiii 2014-01-27 19:30:49 UTC
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.
Comment 4 Myriam Schweingruber 2014-08-12 08:53:49 UTC

*** This bug has been marked as a duplicate of bug 281143 ***