Le Friday 28 March 2008 23:32:25 [EMAIL PROTECTED], vous avez écrit : > I show you my .liq file > <------------------------- > promotions = playlist("/home/user/promo.lst") > mix = playlist("/home/user/mix-minimal.lst") > mixnuit = playlist("/home/user/mix-minimal.lst") > normal = playlist("/home/user/minimal.lst") > ##### > security = mksafe(playlist("/home/user/safe.lst")) > ##### > timed_promo = delay(3600., promotions) > ##### > radio = switch([ ({16h00-19h30}, mix), ({19h30-21h}, normal), ({21h-23h30}, > mixnuit), ({23h30-16h00}, normal) ]) > ##### > radio = map_metadata(fun(m)->[("title", get_process_output("basename > #{quote(m[\"filename\"])}"))], playlist("/home/user/minimal.lst")) (...) > ?? How should i do ?
Look at the last definition: > radio = map_metadata(fun(m)->[("title", get_process_output("basename > #{quote(m[\"filename\"])}"))], playlist("/home/user/minimal.lst")) It redefines radio as being the mapping on the minimal playlist.. Which exactly what you get :-) In fact the previous definitions of radio are masked, and disapear after the new definition.. Instead, you should just do: > radio = map_metadata(fun(m)->[("title", get_process_output("basename > #{quote(m[\"filename\"])}"))], radio) ;-) Romain -- son, daddy left you were from you were four I've got to struggle 'cos I am poor she said, food is a very hard thing to find sometime I feel like I'm going out of my mind