aboutsummaryrefslogtreecommitdiff
path: root/scuttle
diff options
context:
space:
mode:
Diffstat (limited to 'scuttle')
-rwxr-xr-xscuttle6
1 files changed, 3 insertions, 3 deletions
diff --git a/scuttle b/scuttle
index 9de746c..22dd3c9 100755
--- a/scuttle
+++ b/scuttle
@@ -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