HydrogenAudio

Hosted Forums => foobar2000 => General - (fb2k) => Topic started by: sgt_deacon on 2013-01-15 22:18:26

Title: How to make constantly auto-sorting autoplaylist of most played songs?
Post by: sgt_deacon on 2013-01-15 22:18:26
Title:
How to create a perpetually auto-sorting autoplaylist of most played songs using foo_playcount

I don't know if it snipped off the end because my title went over some character limit or if I cut it off by mistake somehow.

I am trying to create an auto-playlist that automatically aggregates my most played songs and lists them in either ascending or descending order. At the moment I have an autoplaylist created using the filter "%play_count% GREATER 0", (I'll eventually raise that when I have more listens) which is doing what I want in adding songs with >0 plays. The problem I am having is how to I make this perpetually sort? If I leave the autoplaylist on "Force-sorted" it sorts it by artist / album / song, which isn't what I want. If I turn off force-sorting I can sort the list by playcount by doing sort->sort by..->%play_count%. The problem with this is it only affects the selection, if a new song is automatically added to the play-list it is automatically appended to the bottom of the playlist, and if a song gets a high number of plays its position in the playlist does not automatically change.

So how do I make the play-list perpetually/continually sort itself so the most played songs always either appear at the top or the bottom?

Thanks for the help!
Also I figured since foo_playcount was an 'official' plugin this was the best place for it, sorry if it's not.
Title: How to make constantly auto-sorting autoplaylist of most played songs?
Post by: ruebe on 2013-01-15 22:29:27
right click the playlist > sort pattern > %play_count%
keep force-sorted checked
this sorts ascending
to get descending sorting use $sub(999,%play_count%)
of course, you might have to replace 999
Title: How to make constantly auto-sorting autoplaylist of most played songs?
Post by: db1989 on 2013-01-15 22:41:06
I don't know if it snipped off the end because my title went over some character limit or if I cut it off by mistake somehow.
There’s a limit of 70 characters. I’ll shorten it down.

Quote
Also I figured since foo_playcount was an 'official' plugin this was the best place for it, sorry if it's not.
Yes, your logic is right-on.
Title: How to make constantly auto-sorting autoplaylist of most played songs?
Post by: sgt_deacon on 2013-01-15 22:49:21
right click the playlist > sort pattern > %play_count%
keep force-sorted checked
this sorts ascending
to get descending sorting use $sub(999,%play_count%)
of course, you might have to replace 999

Where are you seeing "sort pattern"?  When I right click on a playlist I don't see that.

I don't know if it snipped off the end because my title went over some character limit or if I cut it off by mistake somehow.
There’s a limit of 70 characters. I’ll shorten it down.

Quote
Also I figured since foo_playcount was an 'official' plugin this was the best place for it, sorry if it's not.
Yes, your logic is right-on.

Thanks!
Title: How to make constantly auto-sorting autoplaylist of most played songs?
Post by: ruebe on 2013-01-15 23:04:02
right click an autoplaylist > autoplaylist ...
Title: How to make constantly auto-sorting autoplaylist of most played songs?
Post by: carpman on 2013-01-15 23:04:42
Click on the [...] button and select: "Create Autoplaylist"
Right click on the New Playlist and select "Autoplaylist properties"
Enter " $sub(99999,%play_count%) " in the box.

C.
Title: How to make constantly auto-sorting autoplaylist of most played songs?
Post by: ExUser on 2013-01-15 23:15:10
ITT: Ugly hacks.

Library > Search > %play_count% GREATER 0 SORT DESCENDING BY %play_count% > ... > Create Autoplaylist

Done.
Title: How to make constantly auto-sorting autoplaylist of most played songs?
Post by: sgt_deacon on 2013-01-16 00:12:29
right click an autoplaylist > autoplaylist ...

Ah, so apparently the an autoplaylist not created the way Canar describes does not have the SORT field for you to input a string. Not sure why.

ITT: Ugly hacks.

Library > Search > %play_count% GREATER 0 SORT DESCENDING BY %play_count% > ... > Create Autoplaylist

Done.

Thanks! Exactly what I was looking for.