Added link timeout ffor titles.
This commit is contained in:
parent
80ab86f8b7
commit
96b4400f5e
@ -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:]' ' ')"
|
||||
|
Loading…
Reference in New Issue
Block a user