IPB

Welcome Guest ( Log In | Register )

> foobar2000 General Forum Rules

This is NOT a tech support forum.
Tech support questions go to foobar2000 Tech Support forum instead.

See also: Hydrogenaudio Terms of Service.

 
Reply to this topicStart new topic
Most played songs autoplaylist
BPM
post Aug 28 2009, 21:24
Post #1





Group: Members
Posts: 11
Joined: 28-August 09
Member No.: 72727



I want to make an autoplaylist that will contain my top 100 songs with the highest play counts.
Im using the foo_playcount component so my playcounts are stored in %play_count%.
What kind of sort/query pattern syntax do I need to limit the number of items (tracks) in an autoplaylist?
So far I have this in the query pattern: "%play_count% GREATER 0" which removes any songs not yet played. What I need now is something to limit the number of entries in the playlist to maximum 100 (or whatever number I want)

Im very new to the syntax used so I dont know if there is a simple solution to this. I assume I need something like $max(%title%, 100)? (I know its wrong)
Go to the top of the page
+Quote Post
Yirkha
post Aug 28 2009, 21:33
Post #2





Group: FB2K Moderator
Posts: 2359
Joined: 30-November 07
Member No.: 49158



The conditions are evaluated on a per-track basis, therefore any limits (count, total file size, total length, ...) are not available in the current query syntax.


--------------------
Full-quoting makes you scroll past the same junk over and over.
Go to the top of the page
+Quote Post
Jack Schmaltz
post Aug 28 2009, 21:33
Post #3





Group: Members
Posts: 216
Joined: 7-November 08
From: H:N:L, UK
Member No.: 61899



i like your idea for this autoplaylist, unfortunetly i cant be of much help at the moment.

i think it may involve the $ifgreater command but how to string it together to limit the amount of tracks im not sure, maybe %list_index% or %list_total%.

i'll have a little mess around but if someone more experienced can answer this please do biggrin.gif

EDIT: bah, Yirkha replied as i was typing. at least you have answered the question & i wont be trying a dead end now haha!

This post has been edited by Jack Schmaltz: Aug 28 2009, 21:34


--------------------
http://www.discogs.com/user/jackschmaltz
Go to the top of the page
+Quote Post
odyssey
post Aug 28 2009, 21:35
Post #4





Group: Members
Posts: 2296
Joined: 18-May 03
From: Denmark
Member No.: 6695



You can't limit a list that way and since queries only validates against each track, you'll have to find another solution.

The best you could do is probably something like:

CODE
%play_count% GREATER 3 SORT DESCENDING BY %playcount%

Then you'll have a list sorted by playcount, which you can easily shorten manually.

Edit: Damn I'm slow tongue.gif

This post has been edited by odyssey: Aug 28 2009, 21:37


--------------------
Can't wait for a HD-AAC encoder :P
Go to the top of the page
+Quote Post
Xezzy
post Aug 28 2009, 21:35
Post #5





Group: Members
Posts: 209
Joined: 14-February 08
Member No.: 51306



I remember that foo_playlist_tree could do something like this, and possibly foo_playlist_tree_mod can do this too, but since I dont use them now I cant tell for sure.

EDIT: odyssey was first
EDIT2: Yirkha was first, odyssey was in fact third!

This post has been edited by Xezzy: Aug 28 2009, 21:38
Go to the top of the page
+Quote Post
BPM
post Aug 28 2009, 23:17
Post #6





Group: Members
Posts: 11
Joined: 28-August 09
Member No.: 72727



Thats a shame that it couldn't be easier : /

Ive tried looking for the playlist_tree_mod component but I cant find it, I assume the original playlist_tree is now defunct?
I recently installed library tree component (foo_uie_library_tree) Could this possible do what Im asking for?
Go to the top of the page
+Quote Post
Xezzy
post Aug 28 2009, 23:47
Post #7





Group: Members
Posts: 209
Joined: 14-February 08
Member No.: 51306



foo_playlist_tree_mod
It's very powerful component, but bear in mind you will have to use columns UI instead of default UI (thats the main reason i dont use it unsure.gif )
Go to the top of the page
+Quote Post
odyssey
post Aug 29 2009, 00:31
Post #8





Group: Members
Posts: 2296
Joined: 18-May 03
From: Denmark
Member No.: 6695



QUOTE (BPM @ Aug 29 2009, 00:17) *
Thats a shame that it couldn't be easier : /

Umm no offence, but didn't my solution fit perfectly in your question, besides the inability to shorten it to a certain length?

It works in any UI and you can even create an autoplaylist that always keeps it updated. You can even modify the playcount threshold to match somewhat closely 100 matches (at least at current point in time). I say this because playlist tree requires extreme amounts of knownledge to configure properly and I have a hard time seeing how trimming a list to 100 entrys is not an easy task. Why do you need exactly 100 entrys only?

This post has been edited by odyssey: Aug 29 2009, 00:49


--------------------
Can't wait for a HD-AAC encoder :P
Go to the top of the page
+Quote Post
BPM
post Aug 29 2009, 01:08
Post #9





Group: Members
Posts: 11
Joined: 28-August 09
Member No.: 72727



Im trying to mimic the smart playlists in iTunes, and what I usually do is go on shuffle within that list of 100 top played songs. If the list was much larger, the shuffle idea would be useless because it would be playing many more songs that are not close to the top 100. The main problem was the playlist length.
Go to the top of the page
+Quote Post
Xezzy
post Aug 29 2009, 17:34
Post #10





Group: Members
Posts: 209
Joined: 14-February 08
Member No.: 51306



And it could be useful while syncing with portable device (in this case limiting total size, not number of tracks). It would be fun to create one hour worth of music playlist, or 25 newest albums etc.
It cannot be done atm, and I hope to see this feature in later revisions, so don't disregard this smile.gif
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 25th October 2014 - 18:37