Re: [Musicpd-dev-team] add a new track randown selecting fealure

2009-11-21 Thread lameire alexis
Le samedi 21 novembre 2009 à 21:01 +0100, Max Kellermann a écrit :
 On 2009/11/21 20:58, lameire alexis alexisis-pristont...@hotmail.com wrote:
  dont't excuse you :)
  i saying that add this fealure on client is not a good idea:
  - in one hand we must put the client open
 
 You have to use a client to add songs to the playlist, and you have to
 use a client to start playback.  So what's the difference?
ho not, i quote my exemple : i love that the songs start when the
computer booting, or in another hand i pilot mpd in my bet with my
laptop :) and it's more pratice in this case :)
  - in second hand we must add it on all client
 
i explane, eatch client must have an implementation of it if they must
have this fealure. In second hand it's speedest because we do less over
network querry and less operations
if we add it in serveur, one call on the library are only needed by
client :) it's easyest to expand it :)
 
  - in third hand it's probably add some bug when we close client ;)

imagine it :
a client have her own implementation :
he use a playlist to seach songs :)
select it randownly
play it

close the softwere and we can have :
- one song that always repeat
- one song that repeat one time
it's not practice, more if you work on tty



--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Musicpd-dev-team mailing list
Musicpd-dev-team@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team


Re: [Musicpd-dev-team] add a new track randown selecting fealure

2009-11-21 Thread Jerome Quelin
On 09/11/21 20:29 +0100, Max Kellermann wrote:
 On 2009/11/21 20:23, lameire alexis alexisis-pristont...@hotmail.com wrote:
  if the random option is selection when the songs finish mpd select a
  new song, but at this time it don't select songs in function of the rate
  of it (the numbers of stars :)).
 
 If you want some sort of weighting based on the song rating, you
 should better write a client which assembles a (randomly selected)
 playlist, or which shuffles an existing playlist.  MPD itself
 shouldn't do complex control stuff.

you may want to look at perl bindings audio::mpd which provides a script
that does dynamic playlist, taking song rating into account.

however, the script itself predates rating support in mpd, so it uses a
non-mpd dbfile (sleepycat). i plan to port it to using mpd's native
rating.

in the meantime, it can work without rating - in that case, songs will
be inserted randomly.

regards,
jérôme 
-- 
jque...@gmail.com

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Musicpd-dev-team mailing list
Musicpd-dev-team@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team