hello,

Thank’s for your answer,
is there a difference between rewrite metadata with blank text, and drop 
metadata?
because what I need is to delete metadata in one condition.

I did that, it seams to work, but I’m not 100% sure :


def drop_blank_title(m) =
  if m["title"] == "attente - Unknown" then [] else m
end
end

source = map_metadata(strip=true, drop_blank_title, source)









> Le 29 mars 2016 à 10:27, unosonic <[email protected]> a écrit :
> 
> 
> i use this for rewriting based on the presence of a custom variable:
> 
> src = rewrite_metadata(
>        [("artist",'$(if $(my_artist),"$(my_artist)","$(artist)")'),
>        ("title", '$(if $(my_title),"$(my_title)","$(title)")')],
>        src)
> 
> /b u
> 
> 
> 
> Robert McAuley:
>> Have you tried using if statements and rewrite_metadata?  I have this line
>> in my liq file which rewrites title metadata for a suffix, depending on a
>> switch:
>> 
>> src = rewrite_metadata([("title", '$(if $(use_suffix),"$(title)
>> $(suffix)","$(title)")'), ("url", "http://mystation.com";)], src)
>> 
>> On Sun, Mar 27, 2016 at 1:35 AM, jean duffas <[email protected]> wrote:
>> 
>>> Hello,
>>> 
>>> I would like to drop-metadata from a stream when metadata is equal to a
>>> certain value…
>>> is there a solution for that?
>>> 
>>> thank you :-)
>>> 
>>> ------------------------------------------------------------------------------
>>> Transform Data into Opportunity.
>>> Accelerate data analysis in your applications with
>>> Intel Data Analytics Acceleration Library.
>>> Click to learn more.
>>> http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
>>> _______________________________________________
>>> Savonet-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/savonet-users
>>> 
> 
>> ------------------------------------------------------------------------------
>> Transform Data into Opportunity.
>> Accelerate data analysis in your applications with
>> Intel Data Analytics Acceleration Library.
>> Click to learn more.
>> http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140
> 
>> _______________________________________________
>> Savonet-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/savonet-users
> 
> 
> ------------------------------------------------------------------------------
> Transform Data into Opportunity.
> Accelerate data analysis in your applications with
> Intel Data Analytics Acceleration Library.
> Click to learn more.
> http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users


------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to