View Issue Details

IDProjectCategoryView StatusLast Update
0019286MMW 5Playlistspublic2024-02-18 18:45
Reporterzvezdan Assigned To 
PrioritynormalSeverityminorReproducibilityrandom
Status closedResolutionfixed 
Target Version5.1Fixed in Version5.1 
Summary0019286: playlist.addTracksAsync doesn't update displayed playlist always
DescriptionaddTracksAsync doesn't update displayed playlist always, but it updates Playlist Editor if it is displayed. Approx. one in 10-20 times it doesn't work.

Although, both (app, 'playlistchange') and (app.playlists.root, 'playlistChanged') are fired.

For example, I am using:
                    goQueueListPlaylist.clearTracksAsync().then(() => {
                        goQueueListPlaylist.addTracksAsync(oQueueLst).then(() => {

but, even options from your programs are problematic.
Steps To Reproduce1. put one track into Playing list;
2. select an empty playlist in the tree;
3. choose Save playlist from the Playing menu;
4. specify the displayed playlist and confirm -> sometimes playlist is not updated, i.e. it stays empty and you need to use Refresh.
TagsNo tags attached.
Fixed in build2814

Activities

Ludek

2022-08-05 11:04

developer   ~0068968

I am unable to replicate, for me the selected playlist content is always updated.

The update is done via listening on the playlist 'change' event (in viewHandlers.tracklistBase.onShow)
The event is always fired with the 'tracklist' changeType and thus refreshed in __refreshTracklist there.

Could you please catch it in a small video so that I am sure that we are performing same steps on the same view/node etc. ?
e.g. add a link to the video to private note here.

Thx.

zvezdan

2022-08-05 13:35

updater   ~0068972

Here it is, I got it from the second attempt.
2022-08-05_15-31-54.gif (579,937 bytes)

zvezdan

2022-08-05 13:37

updater   ~0068973

The test was performed without any add-on installed and with almost empty database.

Ludek

2022-08-05 15:54

developer   ~0068980

Thanks for the video, now I can replicate this issue too.
It seems that key to replicate is testing just with single track and you need to remove it from the playlist at first.

zvezdan

2022-08-05 16:00

updater   ~0068981

It happens with multiple tracks as well. I am not sure, but it seems that it happens only when the target playlist is empty.

Ludek

2023-08-30 11:15

developer   ~0072713

Fixed in 2814

peke

2024-02-18 18:45

developer   ~0074300

Verified 2834