This is great, thanks so much for the detailed reply! It get’s pretty close, but if the song is played more recently it’s then filtered out, so doesn’t properly work as a ‘Most played in X month’, if it’s then played later.
For example, the ‘Most Played in August’ playlist that’s generated by Plex for the Home screen includes things that I’ve played again recently (like the Katy Perry track shown in the screenshot), but it unfortunately get’s filtered out of those rules as it’s played again recently.
Out of idle curiosity, I created the Smart playlist from the home ‘Most Played in August’ section, then downloaded a copy of my database and began a little digging. I’ve found what I presume to be the playlist listed in the “play_queue_generators” table. What makes it stand out to me is the ‘uri’, which is quite different from eveything else:
library://x/directory/%2Fhubs%2Fsections%2F1%2Fpopular%3FmonthsAgo%3D5
This suggests to me that it’s generating the playlist based on popular tracks from 5 months ago, which would line up with August. I honestly don’t know enough about how Plex and databases work, but if I’m correct, is there a way of me pushing a playlist to be created with a specific string/uri? I’ve used this to import playlists without too many issues, would you happen to know if the API elan is talking about here is also capable of creating smart playlists with custom strings and filters?
It’d be awesome to have a built in filter for ‘most played between X and Y’ implemented in the native Plex GUI.
I’ll get Tautulli installed, as I’d love to dig a little further into the stats!
Thanks so much for your help!