diff options
Diffstat (limited to 'scuttle')
-rwxr-xr-x | scuttle | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -8,7 +8,7 @@ function urlencode() { # urlencode <string> old_lc_collate=$LC_COLLATE LC_COLLATE=C - + local length="${#1}" for (( i = 0; i < length; i++ )); do local c="${1:i:1}" @@ -17,7 +17,7 @@ function urlencode() { *) printf '%%%02X' "'$c" ;; esac done - + LC_COLLATE=$old_lc_collate } @@ -49,7 +49,7 @@ CALL="$CALL&tags=$TAGS" # Description if [ -z "$DESC" ]; then - DESC="`curl -s $URL | grep -i "<title>" | sed -e 's|<title>\(.*\)</title>|\1|' 2> /dev/null`" + DESC="`torify curl -s $URL | grep -i "<title>" | sed -e 's|<title>\(.*\)</title>|\1|' 2> /dev/null`" echo "Fetched description: $DESC" fi |