ref: b98b2c57cf1031b43b57bb8b8d8b4954ac6dd4cc
parent: 704bd2b513dca6ba35deb5adf97529e4ebb3261f
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Tue May 13 21:15:33 EDT 2014
play: set user-agent, otherwise server thinks we'r mozilla m(
--- a/rc/bin/play
+++ b/rc/bin/play
@@ -34,7 +34,7 @@
sed 's/ //g' | while(j=`{read}){
echo $"j >[1=2]
if(~ $"j http:* https:* HTTP:* HTTPS:*){
- hget -r 'Icy-MetaData: 0' $"j | play1 $"j
+ hget -r 'User-Agent: play' -r 'Icy-MetaData: 0' $"j | play1 $"j
}
if not {
if(test -r $"j)