Bug 313971 - playlist length no longer updated on using the random album script
Summary: playlist length no longer updated on using the random album script
Status: RESOLVED DUPLICATE of bug 281143
Alias: None
Product: amarok
Classification: Applications
Component: Playlist (show other bugs)
Version: 2.7.0
Platform: Ubuntu Linux
: NOR normal
Target Milestone: 2.8
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-27 12:58 UTC by robert marshall
Modified: 2014-08-12 08:53 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***