I'm using liquidsoap 1.3.4 now but there seems to be some problem in the way I'm getting metadata from MySQL. The function I'm using is the following:
# Function to get metadata from MySQL def update_meta() = new_title = list.hd( get_process_lines( "mysql my_db -u user -ppassword -sNe \"SELECT Title FROM my_table WHERE id=1\"" ) ) new_artist = list.hd( get_process_lines( "mysql my_db -u user -ppassword -sNe \"SELECT Artist FROM my_table WHERE id=1\"" ) ) #A debug message print("Insert metadata title = #{new_title}") print("Insert metadata artist = #{new_artist}") 5.0 end Problem is, in the log it keeps printing: Insert metadata title = <fun> Insert metadata artist = <fun> Probably it is getting something wrong in that "get_process_lines" requisition but I have no idea why..
_______________________________________________ Savonet-users mailing list Savonet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/savonet-users