Question around LeastRecentlyPlayed

You have a question or need an advice about how to do something? Ask it here!
Post Reply
Thijmen
Posts: 150
Joined: 16 Jul 2019 20:19
Question around LeastRecentlyPlayed

Post by Thijmen »

Hi Bernd,

I have a media library of around 5000 tracks.

For my Christmas tracks, I use a ruleset that they can only be played in December, for instance. Those are around 250-ish tracks.

Now, as you can imagine, it was quite some time since these tracks have been played. I believe, that this causes "LeastRecentlyPlayed" to misbehave a little bit.

Code: Select all

11-7-2026 19:53:42: Script Test started for : TEST
11-7-2026 19:53:42: Processing Script-Line 1 (Retries=200): 1 LeastRecentlyPlayed : UnifiedDb (Filter=~[Rating] != '20', Options=None)
11-7-2026 19:53:42: Get Random Track UnifiedDb: TrackPointer=0, TrackCount=4514, Filter=LeastRecentlyPlayed~[Rating] != '20', TargetDuration=
11-7-2026 19:53:42: Processing Script-Line 1 done: 1 LeastRecentlyPlayed : UnifiedDb (Filter=~[Rating] != '20', Options=None) (scriptlineSkipped=False; track=John Lennon - Imagine (Remastered 2010))
11-7-2026 19:53:42: Scripting-Restriction: track matches track restriction (Track=John Lennon - Imagine (Remastered 2010), Restriction=00:00:00|00:00:00|0|0|00010101|00010101|True|Kerst|$0, At=11-7-2026 19:53:42)
11-7-2026 19:53:42: Get Random Track UnifiedDb: TrackPointer=1, TrackCount=4514, Filter=LeastRecentlyPlayed~[Rating] != '20', TargetDuration=
11-7-2026 19:53:42: Processing Script-Line 1 done: 1 LeastRecentlyPlayed : UnifiedDb (Filter=~[Rating] != '20', Options=None) (scriptlineSkipped=False; track=Krezip, Danny Vera - It All Means Nothing (You're Not Here Now))
11-7-2026 19:53:42: Scripting-Restriction: track matches track restriction (Track=Krezip, Danny Vera - It All Means Nothing (You're Not Here Now), Restriction=00:00:00|00:00:00|0|0|00010101|00010101|True|Kerst|$0, At=11-7-2026 19:53:42)
11-7-2026 19:53:42: Get Random Track UnifiedDb: TrackPointer=2, TrackCount=4514, Filter=LeastRecentlyPlayed~[Rating] != '20', TargetDuration=
11-7-2026 19:53:42: Processing Script-Line 1 done: 1 LeastRecentlyPlayed : UnifiedDb (Filter=~[Rating] != '20', Options=None) (scriptlineSkipped=False; track=The Pogues - Fairytale of New York (feat. Kirsty MacColl))
11-7-2026 19:53:42: Scripting-Restriction: track matches track restriction (Track=The Pogues - Fairytale of New York (feat. Kirsty MacColl), Restriction=00:00:00|00:00:00|0|0|00010101|00010101|True|Kerst|$0, At=11-7-2026 19:53:42)
11-7-2026 19:53:42: Get Random Track UnifiedDb: TrackPointer=3, TrackCount=4514, Filter=LeastRecentlyPlayed~[Rating] != '20', TargetDuration=
Is there any advice/guidance you can give me here? For example, I think it would help perhaps if the filtering feature allows me to filter for tracks that don't got certain rulesets.
User avatar
radio42
Site Admin
Posts: 9129
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Question around LeastRecentlyPlayed

Post by radio42 »

Why don‘t you tag those tracks properly?
Eg use the Genre or Grouping field value and then use a normal filter.
Or even place all your Christmas tracks into its own media library?

I don’t see, why the LastRecentlyPlayed played tracks mode do misbehave?
Thijmen
Posts: 150
Joined: 16 Jul 2019 20:19
Re: Question around LeastRecentlyPlayed

Post by Thijmen »

> Why don‘t you tag those tracks properly?

Because I did not want to filter for "non christmas songs" per default in all of my scripts.

Ofcourse, I can tag those with Grouping, that would work - but then I would need to used that in all my scripts. Is there some possibility to use a "base filter" or something in the likes?
User avatar
radio42
Site Admin
Posts: 9129
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Question around LeastRecentlyPlayed

Post by radio42 »

No. In such case place your Xmas tracks in a separate media library.
Thijmen
Posts: 150
Joined: 16 Jul 2019 20:19
Re: Question around LeastRecentlyPlayed

Post by Thijmen »

Fair enough, gonna do that, thanks a lot!

Post Reply