ref: a26704b4f61f20077fda74e24dc3bcb2a3b2c143
dir: /getaudio/
#!/bin/rc # to download songs and store their metadata if(! ~ $#* 1){ echo 'usage: wm/getaudio url' >[1=2] exit usage } url = $1 file = `{basename $1} plist = ./plist if(! test -f $file){ hget -o $file $url && {echo $url >> $plist && audio/mkplist $file >> $plist} }