View Issue Details

IDProjectCategoryView StatusLast Update
0017486MMW 5Playlists (Auto) / Search / Filterspublic2021-05-12 16:55
Reporterrusty Assigned To 
PriorityurgentSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version5.0 
Target Version5.0Fixed in Version5.0 
Summary0017486: Auto-Playlists selected by random (auto-refresh) don't refresh in some cases
DescriptionIf an auto-playlist is configured with a limit that is greater than the number of files that match the playlist criteria, then it fails to auto-refresh if the user enables Sort by Random.

The bug does not occur if either:
- Sort by Random is not configured
- The number of matching tracks is greater than the limit

For example, supposing the criteria match 973 files and:
a) Limit to: 500 files selected by Random track (auto-refresh) | Sort by: Random
--> Auto-refresh/F5 triggers a refresh
b) Limit to: 1000 files selected by Random track (auto-refresh) | Sort by: Random
--> Auto-refresh/F5 fails to trigger a refresh!
c) Limit to: 1000 files selected by Random track (auto-refresh)
--> Auto-refresh/F5 triggers a refresh
Additional Informationreported at https://www.mediamonkey.com/forum/viewtopic.php?f=30&t=98341
TagsNo tags attached.
Fixed in build2303

Relationships

related to 0014553 closedLudek Make auto-playlists with random order more persistent 
related to 0017365 closedLudek The new "Selected by" option is limited 
related to 0015777 closedLudek Auto-Playlists: 'Selected by' doesn't support all fields that users would expect 
related to 0017854 closedLudek Play Shuffled triggers a change in order of AutoPlaylists set to Auto-Refresh 

Activities

Ludek

2021-02-03 18:20

developer   ~0061714

Last edited: 2021-02-03 18:23

OK,
I modified the code to use "Auto-refresh" random sort order whenever there is the [x] Limit to: ... selected by [Random (auto-refresh)] enabled.
(i.e. even when the number of matching tracks is greater than the limit)

I also modified importing playlists from MM4 as after the fix of 0017365 all MM4 auto-playlists were converted to
...selected by: [Sort order]
which makes the "auto-refresh" not working.

So for those MM4 auto-playlists that have just single sort order field specified I am trying to match it with particular "selected by" field variant at first and match 'Sort by: random' with 'Selected by: 'Random (auto-refresh)'' to keep the "auto-refresh" behaviour for such a playlists imported from MM4.

rusty

2021-02-04 21:10

administrator   ~0061737

Verified that Limits/Sorts function as expected in MM5. Leaving 'resolved' for Peke to test the migration process.

peke

2021-02-04 22:14

developer   ~0061750

Verified 2303

All working.

Test Note 2302 fails on same Auto Playlist criteria
bug17486.png (13,443 bytes)   
bug17486.png (13,443 bytes)