Re: [Savonet-users] Id3tag and Liquidsoap

2008-03-29 Thread isofred
pfff it seems so simple and obvious (after this explanation)! i feel stupid. :-/ it's work Have a nice week-end 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

Re: [Savonet-users] Id3tag and Liquidsoap

2008-03-28 Thread isofred
Re hello, I'am back to you about map_metadata function who's work now perfectly ..almost perfectly. 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 =

Re: [Savonet-users] Id3tag and Liquidsoap

2008-03-28 Thread Romain Beauxis
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 =

Re: [Savonet-users] Id3tag and Liquidsoap

2008-03-22 Thread Romain Beauxis
Le Friday 21 March 2008 22:28:18 [EMAIL PROTECTED], vous avez écrit : hello, i'm back (x_o) Hi ! map_metadata not work for me. maybe I missuse it. --- radio = map_metadata(fun(m)-[(title, get_process_output(basename#{quote(m[\filename\])}))],

Re: [Savonet-users] Id3tag and Liquidsoap

2008-03-22 Thread David Baelde
Hi, On Sat, Mar 22, 2008 at 1:01 PM, Romain Beauxis [EMAIL PROTECTED] wrote: Heh, seems you missed a space ! Yes there should be a space after basename. You can also use a simpler version with an up-to-date liquidsoap: radio = map_metadata(fun(m)-[(title, basename(m[filename])],

Re: [Savonet-users] Id3tag and Liquidsoap

2008-03-21 Thread isofred
hello, i'm back (x_o) map_metadata not work for me. maybe I missuse it. --- radio = map_metadata(fun(m)-[(title, get_process_output(basename#{quote(m[\filename\])}))], playlist(/home/user/www/Radio/minimal)) --- I get this error in log (mp3 track still played): --- [stderr:3] /bin/sh:

Re: [Savonet-users] Id3tag and Liquidsoap

2008-03-20 Thread Samuel Mimram
David Baelde wrote: Oops, just found a bug in my solution. There should be a quotation to avoid shell interpretation: ... get_process_output(basename #{quote(m[\filename\])}) ... (This is the same as get_process_output(basename ^quote(m[filename]) which might be simpler to read in that

Re: [Savonet-users] Id3tag and Liquidsoap

2008-03-19 Thread Romain Beauxis
Le Tuesday 18 March 2008 22:06:30 David Baelde, vous avez écrit : annotate:title=\rien\,rien=\title\:~/media/audio/Sex_Mob/Artie_Shaw.ogg and:   liquidsoap -r ~/media/audio/Sex_Mob/Artie_Shaw.ogg I can see the new metadata field rien being added, but the field title is not changed. This means

Re: [Savonet-users] Id3tag and Liquidsoap

2008-03-18 Thread David Baelde
By the way, it might be helpful to remind that you can use liquidsoap -r URI (where URI can be a local path, a remote URL, an annotate:..:URI, etc) to check the validity and see the metadata associated to the request:

Re: [Savonet-users] Id3tag and Liquidsoap

2008-03-18 Thread Romain Beauxis
Le Tuesday 18 March 2008 16:50:26 David Baelde, vous avez écrit : By the way, it might be helpful to remind that you can use liquidsoap -r URI (where URI can be a local path, a remote URL, an annotate:..:URI, etc) to check the validity and see the metadata associated to the request: Hey, it's

Re: [Savonet-users] Id3tag and Liquidsoap

2008-03-18 Thread isofred
Selon David Baelde david.baelde: yep There are several solutions. I'll describe them quickly. Use annotate:title=force,artist=force:file instead of file. You can use that syntax in your playlists. I'm not 100% sure that the annotate metadata overrides the file metadata, though. Please tell

Re: [Savonet-users] Id3tag and Liquidsoap

2008-03-18 Thread David Baelde
Oops, just found a bug in my solution. There should be a quotation to avoid shell interpretation: ... get_process_output(basename #{quote(m[\filename\])}) ... (This is the same as get_process_output(basename ^quote(m[filename]) which might be simpler to read in that case.) -- David