Build a Smart Playlist based off Track Rating with secondary filter to remove Duplicates?

Server Version#: Version 1.28.2.6151
Player Version#: Version 4.90.1

I’d like to build a smart playlist based off track ratings. Sounds simple enough, but I also don’t want the same track to appear more than once.

Take this scanario:

  1. As a test rate one single track you know is in multiple albums on your plex server, just rate one. In this example, Piano Man from Billy Joel which is in 4 different albums.
  2. Now create a advanced filter to find all tracks with that rating.

Result:
It finds the track from all albums, due to the track ID I guess which is in my music tags.

However, I’d like it to just list one of these rather than adding multiple versions of the same track to the list.

Any way to accomplish this in plex (without deleting the track from the various albums).

Anyone ? Even, it’s not possible would be helpful to know !

For all I know you cannot achieve that.
It seems a bit off as Plex elsewhere treats them the same (e.g. same rating is automatically applied – as per your example).

As for your very specific question / use case: you can always set Limit To to 1 :wink:

Thanks tom for the reply. The Limit To in the advanced filter is meant to limit the total number of tracks and it does not limit the resulting tracks when multiple of the same track are found.

Example below …

  • Rate three tracks I know are in multiple albums on your plex server. These are Piano Man, Updown Girl & We Didn’t Start the Fire all from Billy Joel.
  • In a smart playlist this finds 11 tracks.
  • Now when I change the Limit To to 1 it now filters to 1 track and not the 3.

Anyhow, sounds like what I want is not possible. I’ll look to see if I can do something else, what I’m not sure! The fact I cannot search or sort a normal playlist is a huge pain in the neck for curating large playlists.

What I’m looking for really is a secondary filter – 1) find all tracks with 5 stars and 2) don’t give me any duplicates based on the first set of results.

When I run into a limitation in the UI, I turn to manipulating Plex using the API.

Off the top of my head, it sounds like something like that could be possible using the API.

For anyone else who comes across this is somewhat of a workaround:

If you 1) set album type as is not compilation and 2) track rating to what I want.

This certainly helps but is not perfect as I’ll need to make sure everything I want is not in a compilation.

Anyhow, I’m going to create a feature request to see if Duplicate could be added for tracks so we could search and return 1 resulting track when multiple exist on a server.

Interestingly, I noticed today that if duplicate tracks exist on a playlist selecting to shuffle the playlist removes the duplicates !

To demonstrate:

  • Create a smart playlist which contains a track which you know is on multiple albums.
  • I used a simple advanced filter of Track Title contains Piano Man as a test. Four tracks are found …
    Screenshot from 2022-10-05 22-28-44

Now select to Play this and then immediately open up the Play Queue. You will see all four tracks are listed to be played.

Now instead select to shuffle play … Only 1 track is listed and shown in the play queue …
Screenshot from 2022-10-05 22-31-15

Its all rather inconsistent but using shuffle is a decent workaround for now. Confirmed both webui and plexamp work the same in this regard.