Added link timeout ffor titles.

This commit is contained in:
Storm Dragon 2017-05-20 08:33:05 -04:00
parent 80ab86f8b7
commit 96b4400f5e

View File

@ -1,6 +1,6 @@
[ -f functions.sh ] && source functions.sh
curl="$(command -v curl)"
curl="$(command -v curl) --connect-timeout 5"
for l in $3 ; do
if [[ "${l#:}" =~ http://|https://|www\.*\.* ]]; then
pageTitle="$($curl -Ls "${l#:}" | grep "<title>" | html2text | tr -s '[:space:]' ' ')"