I've got two directories, with files, which are added and removed by other
means. I've got two randomized playlists searching those directories. I've then
got a random() around those two. Can you see the problem?
One of those directories sometimes has a lot of files, sometimes very few. The
other one, too, has sometimes a lot of files, sometimes very few. But the
random() seems to switch between the two directories at a 50/50 ratio. So
sometimes people are hearing the same file over and over again (i.e. if one of
the directories is near-empty).
Weights don't help because the weighting would need to be dynamic based on how
many files are in each playlist whenever it is reloaded.
Is there some way, instead of having TWO playlists wrapped in random, to
instead have two DIRECTORIES in one playlist?
i.e. instead of
random(playlist("/foo/bar"), playlist("/baz/quux"))
is there some way i could have
playist("/foo/bar", "/baz/quux")
in which the files from both /foo/bar and /baz/quux are pooled together and the
random choice of file to play is taken from that single pool?
One idea I thought of was just to spoof liquidsoap with symlinks, i.e. i could
create /blah/ecch and inside that have /blah/ecch/bar as a symlink to /foo/bar,
and /blah/ecch/quux which is a symlink to /baz/quux... and then just do
playlist("/blah/ecch"). But that feels kind of hacky to me and I'm not sure if
it'd work.
-ken
------------------------------------------------------------------------------
Time is money. Stop wasting it! Get your web API in 5 minutes.
www.restlet.com/download
http://p.sf.net/sfu/restlet
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users