Error on playlist generation

Hi there,

Getting started with learning the logic behind the playlist generation, i’m running in to an error.
If currently have my music in the ‘unsorted’ folder for the first tests, not using any actual folders / playlist logic.
If an hour template set for all hours, which has a end-marker soft-timed and before that one ’ fill with music’ block, referring to music block 1.

Block 1 is set as ‘maintain order, allow random selection, repeat if necessary’ and has 1 item: music from the ‘unsorted’ folder.

When generating a playlist based on these settings, I don’t get any music tracks, but i get ‘Not found - Error’ as items in the playlist.

When looking at the log for the genration, it will show all the artists with the ‘last use’ time and all the titles with the ‘last used’ time as well.

000000  Mini Scheduler initializing
000000  Date/time: 2024-09-04 09:43:43
000000  Reference slot: 2024-09-04 08:00
000000  
000016  Calculating artist groups
000016  Fetching artists
000016  
000016  Last use:
000016  
000016  SKRILLEX                                  2024-09-03 18:00
000016  MNEK                                      2024-09-03 21:00
000016  BUCKSHOT LEFONQUE                         2024-09-03 02:00
000016  CYNDI LAUPER                              never
000016  ED SHEERAN                                2024-09-03 19:00
000016  NICKELBACK                                2024-09-03 07:00

Then in the log it will step to actually filling the playlist, it will give a ‘not found’ error.

000141  ================================================================================
000141  ================================================================================
000141  Generating playlist for 2024-09-04 08:00, template Test Template
000141  
000157  ================================================================================
000157  Template position 1: Fill with music
000157  
000157  ================================================================================
000157  Template position 2: End of hour marker
000157  
000157  
000157  Loading folder "" (), recursive=False
000157  
000282  Error: Not found
000282  Loading folder "" (), recursive=False
000282  
000344  Error: Not found
000344  Loading folder "" (), recursive=False

What am I doing wrong in my setup?

Narrowed it down a bit. If I change the ‘fill with music block’ to ‘Fill with random items’ (referencing the ‘unsorted’ folder), it does work.

So there seems to be an error in the way I reference or plan the music block. But for the life of me, I can’t find my error.

Hi, did you try to set up and use another virtual folder for your music and then schedule it?

Yes, that was my next step. Describing my problem here helps for my own troubleshooting as well :wink:
It looks like using ‘unsorted’ in the music block templates causes the error.
If I use an extra virtual folder (and just that one folder) it works fine. If I add extra ‘unsorted’ steps I start getting errors.
If, for example, I define a block with 4 x unsorted and 1 x ‘alternative’ (my new virtual folder) I get some errors. It plans 5 tracks in total, but by long not enough to fill the hour. Weird part is, the items that are being planned are from both virtual folders.

Weird stuff. Solution for me for now is to move my items from the ‘unsorted’ virtual folder to a new virtual folder and use that in the music block template.

1 Like

I think the “unsorted” folder is a special one. Log you show us seems to look for items in the “” folder. The “” folder is the parent at the highest level and there is no item within it as all items are at least in one sub-folder.
Indeed “Unsorted” is one of them, but maybe its aim is very specific…

1 Like

There is indeed a bug.

When you click “Add” in the Edit Music Template dialog, the Configure Music Block Item dialog appears, with (apparently) the Unsorted folder selected:

But in fact, the ID that is stored internally is empty (“”), which leads to the error described above.

The workaround is to click the “…” button and select the Unsorted folder again, then click OK to save.

1 Like

PS: Will be fixed in next snapshot.

4 Likes