Advanced Filters: Limit to, choose by random

Apple’s Music.app has a feature where you can create a Smart Playlist and you can choose x many tracks to fill the playlist, and includes a random function.

Plex allows you to create an advanced filter and you have the “Limit to” option, but it only fill it up with the first x tracks, you can’t set that to random.

Why this is helpful:

My Sonos system doesn’t like playlists that are too long for alarms. So it just plays the default “Sonos Chime” in the morning instead of music.

I figured out the problem was playlists with over 1000 items (approximately).

I figured this was a means to fix that.


You can use the Random sort when creating/editing your smart playlist :wink:

That doesn’t exist in Music. (I’ve confirmed it does in Movies, I thought perhaps it was because it’s in list view and not poster view, but don’t seem to see a place to do that in Music)

It exists if you switch from Tracks mode to Artists or Albums. You can still apply the track filter options and by saving the output to a smart playlist, it’ll be a list of tracks anyway (even if the immediate result of the advanced filter will only show you the artists/albums with those matching tracks) :wink:

Edit: I was worried for a moment if the Limit to will properly translate to the number of tracks if you set the filter to display albums or artists – but apparently it does :smiley:

That worked! I just couldn’t switch to grid view from the existing playlist. I needed to create a new playlist and do it from there.

It is counter intuitive. I want songs with >3 stars, not artists or albums. Would be nice if could sort randomly even in a list view.

There’s a Edit Filters option in the playlist’s context menu ()… no need to start from scratch.

Sorry, I wasn’t clear. I used the edit filters button, but it didn’t seem to have a way to switch from list to grid in the edit

Here’s a video of that behaviour. Screen Recording 2022-03-22 at 2.04.30 PM.mov - Google Drive

As stated above… you had created the previous version of your smart playlist based on Tracks mode. Tracks mode only supports table view – so editing the playlist’s filter will bring you to what your video shows.

You could have set the mode to Albums or Artists while editing the playlist filters (which will also give you the Random sort option.

2022 clean-up: considered implemented