1
0
mirror of https://github.com/RyanGreenup/cadmus.git synced 2025-08-10 16:14:02 +02:00

Significantly improved webtitle printing time

This commit is contained in:
Ryan Greenup
2021-01-27 18:13:50 +11:00
parent b6fd03ebb4
commit 7a566a3a56

View File

@@ -91,9 +91,8 @@ ${BLUE} $arglink
${NC} It's description is\n" ${NC} It's description is\n"
title=$(wget -qO- $arglink | title=$(wget -qO- $arglink |\
perl -l -0777 -ne 'print $1 if /<title.*?>\s*(.*?)\s*<\/title/si' | rg -m 1 -o --pcre2 '(?<=<title>)(.*)(?=</title>)' )
recode html..)
>&2 echo $title >&2 echo $title