Evaluated proc song args {set q [. $args]; set json [fix_slashes [wget "http://tinysong.com/s/[urlencode $q]?format=json&key=$::tinysong_api_key"]]; set out ""; set r [regexp -all -inline {Url":"(.+?)".+?SongName":"(.+?)".+?ArtistName":"(.+?)"} $json]; for {set i 1} {$i < [llength $r]} {incr i 4} { append out "\x02[pad_line [lindex $r [+ $i 2]] [song_longest $r 1 2]]\x02 [pad_line [lindex $r [+ $i 1]] 30] ([lindex $r $i])\n" };. $out }