diff options
-rwxr-xr-x | scuttle | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -49,7 +49,8 @@ CALL="$CALL&tags=$TAGS" # Description if [ -z "$DESC" ]; then - DESC="`torify curl -s $URL | grep -i "<title>" | sed -e 's|<title>\(.*\)</title>|\1|' 2> /dev/null`" + # See http://stackoverflow.com/questions/3195851/ddg#3195895 + DESC="`torify curl -s $URL | grep -i "<title>" | sed -n 's/.*<title>\(.*\)<\/title>.*/\1/ip;T;q' 2> /dev/null`" echo "Fetched description: $DESC" fi |