Hi,

map_metadata is probably more suitable. Something along the lines of

def timetitle (m)
  [("title",
    if 12h-14h then "Lunchtime"
    elsif 6h30-9h then "Breakfast"
    elsif 14h-18h then "Afternoon"
    else "Anytime"
    end
  )]
end

x = map_metadata(timetitle,x)

Cheers,
Xavier.

On Sun, Feb 24, 2013 at 2:59 PM, Rob Canning <[email protected]> wrote:

> hi!
>
> how do i rewrite metadata according to time of day?
>
>   x = rewrite_metadata([("artist", "The Bot"), ("title","Breakfast")],x)
>   x = rewrite_metadata([("artist", "The Bot"), ("title","Lunchtime")],x)
>   x = rewrite_metadata([("artist", "The Bot"), ("title","Afternoon")],x)
>
> can this be done internally with the switch style scheduler?
> {14h-15h} etc
>
> rob
>
>
-- Xavier Cazin
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to