Thansk David, I is working now, howeve in the log I cannot see the metadata.
Was expecting to get a list like the artist, title, album, + URL I am sorry to be such a noob and be going on about this... On 03/21/2012 08:10 AM, David Baelde wrote: My bad. It's not a syntax error but a type error. It'll work fine with >this instead: >on_metadata(fun(m)->log(string_of(m)), radio) > >By the way, the type error is reported in a more concise way on 1.0: > >At line 1, char 31-44: >this value has type >(string,...)->_ >but it should be a subtype of >([_],...)->_ > >The handler was taking a string (this is what the log function >expects) but on_metadata expects a handler taking a list (of pairs >representing metadata entries). > >Cheers, > -- _ (` ). http://www.andrecastro.info/ _( '`. .=(`( . ) .-- (( (..__.:'-' .+( ) `( ) ( . ) ` __.:' `-' '- --..,___.--,--'-,---..-.--+--.,,-,,... ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users
