Hi all,

2013/9/26 Gilou <[email protected]>
>
> Le 26/09/2013 12:02, Yoann QUERET a écrit :
> > Hi,
> >
> > I use a m3u playlist for source with only WAV file formated (<name> -
> > <title>.wav) also i have not metadata on.
> >
> > How i can extract <name> and <title> from filename and rewrite
> > liquidsoap metadata ?
>
> Combining map_metadata that gets a filename attribute iirc, and use the
> string functions to parse this (split comes into mind)?

Gilou is correct, "filename" is one of the metadata received by
map_metadata. Using string.split or string.extract, you should be able to
extract the information that you need.

Romain
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to