Permalink
Browse files

fix for other country eg. China, www.bing.com will redirect to cn.bin…

…g.com
  • Loading branch information...
1 parent 6246d36 commit c0e6e593d6e603e823e6dd66dbcd31d74ec98ccb @alswl committed Jul 17, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 bing-wallpaper.sh
View
@@ -4,7 +4,7 @@ PICTURE_DIR="$HOME/Pictures/bing-wallpapers/"
mkdir -p $PICTURE_DIR
-urls=( $(curl -s http://www.bing.com | \
+urls=( $(curl -s http://www.bing.com -b '_FS=NU=1&mkt=en-us&ui=#en-us' | \
grep -Eo "url:'.*?'" | \
sed -e "s/url:'\([^']*\)'.*/http:\/\/bing.com\1/" | \
sed -e "s/\\\//g") )

0 comments on commit c0e6e59

Please sign in to comment.