slitaz-tools rev 938

tazbox tz: freegeoip.net not uses quotes in the CSV response anymore.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Apr 11 16:46:26 2015 +0300 (2015-04-11)
parents 4517e42695ef
children 5d80f6fdbdb7
files tazbox/tazbox
line diff
     1.1 --- a/tazbox/tazbox	Sun Mar 22 15:19:00 2015 +0100
     1.2 +++ b/tazbox/tazbox	Sat Apr 11 16:46:26 2015 +0300
     1.3 @@ -217,10 +217,10 @@
     1.4  }
     1.5  
     1.6  # Free GeoIP service
     1.7 -# Response: "IP","CountryCode","CountryName", ...
     1.8 +# Response: IP,CountryCode,CountryName, ...
     1.9  geoip() {
    1.10  	[ ! -e $csv ] && wget -q -T3 -O $csv http://freegeoip.net/csv/ 2&>/dev/null
    1.11 -	[ -e $csv ] && cut -d'"' -f4 $csv
    1.12 +	[ -e $csv ] && cut -d, -f2 $csv
    1.13  }
    1.14  
    1.15  #