Forgot to change it back from debug.
This commit is contained in:
parent
3f0c290688
commit
af8f5a454b
@ -6,7 +6,7 @@ if [[ "${text}" =~ http://|https://|www\..* ]]; then
|
|||||||
pageTitle="$(curl -L -s --connect-timeout 5 "$text" | sed -n -e 'H;${x;s!.*<head[^>]*>\(.*\)</head>.*!\1!;T;s!.*<title>\(.*\)</title>.*!\1!p}' | pandoc -t plain | tr '[:space:]' ' ')"
|
pageTitle="$(curl -L -s --connect-timeout 5 "$text" | sed -n -e 'H;${x;s!.*<head[^>]*>\(.*\)</head>.*!\1!;T;s!.*<title>\(.*\)</title>.*!\1!p}' | pandoc -t plain | tr '[:space:]' ' ')"
|
||||||
pageTitle="$(echo "$pageTitle" | tr -cd '[:print:]')"
|
pageTitle="$(echo "$pageTitle" | tr -cd '[:print:]')"
|
||||||
if [[ ${#pageTitle} -gt 1 ]]; then
|
if [[ ${#pageTitle} -gt 1 ]]; then
|
||||||
echo "$2" "$pageTitle"
|
msg "$2" "$pageTitle"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user