Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: In search for a plugin, but don't know if such feature is exist. (Read 1035 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

In search for a plugin, but don't know if such feature is exist.

I have a playlist for loved tracks that I collected for many years (about 10k tracks) and I listen it mostly shuffled, but also I love many artists that I listen as albums. I don't want to add all of those artists' discographies to this playlist because artists with a lot of albums will play too often. But I want them to apeear sometimes in this playlist.

So, what I want is that when in my playlist plays some "pseudo/fake track" (let's say "Tom Waits") it just takes one random track from the pool of all Tom Waits discography or from some specified album in my library and after that track it further plays tracks from the playlist. Something like some kind of a virtual folder (or a link to a internal foobar playlist) that acts as a track with the ability that Foobar will play only one random track from it when it plays this "track".

That's how I imagine this should work, but maybe there are some other workarounds to do the thing.

Re: In search for a plugin, but don't know if such feature is exist.

Reply #1
That doesn't exist at all and it would require a lot of work to recreate it, even if possible (and it is). The alternative is to generate such playlist on demand.

You can create pools using other playlists as source though. Not with the original random pools component, but check my JS version ( Playlist Tools) on my sig. Other special sources may also be used (LIBRARY, SEARCHBY, GROUP).

X X
X

You would obviously have to create multiple pairs of 'source,num of tracks' if you want to create a playlist with more than one track. And change the queries for every desired artist. You have multiple examples on the menus (which can be edited) and also on files at presets folder.

I would not add 50 artists this way though, but you can easily add 5 tracks for 5 artists this way and then another 25 random tracks from library.

X X

Code: [Select]
My source,5;My source,5;_LIBRARY_0,20
Code: [Select]
My source,ARTIST IS gone gone beyond;My source,ARTIST IS David Bowie;_LIBRARY_0,%RATING% GREATER 3

Also note the query may use dynamic evaluation too, i.e. using the selection as reference. So instead of ARTIST IS David Bowie, you can use ARTIST IS #ARTIST#. And whenever you run the pool, the #ARTIST# part is replaced with the current artist selected. Note it only works with a single track, don't expect it to expand to multiple tracks. This may be used for a 'Top tracks by Artist' pool, where you can generate playlist for any artist on the fly.

Don't expect any more guide from me though.

EDIT: I'm currently fixing an omission on my side, currently script only allows a single call to a playlist as source (due to not having the numeration like the other sources), not multiple ones like my example. Will be fixed today.

 

Re: In search for a plugin, but don't know if such feature is exist.

Reply #2
Ok, fixed it and also revamped the auto-numbering of sources in the process and the popup info. Note how specifying the same playlist multiple times automatically creates multiple sources with different id at the second popup. The same applies to any source.

Will upload it to github on a few hours.