1
0
mirror of https://github.com/RyanGreenup/cadmus.git synced 2025-04-21 02:01:50 +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"
title=$(wget -qO- $arglink |
perl -l -0777 -ne 'print $1 if /<title.*?>\s*(.*?)\s*<\/title/si' |
recode html..)
title=$(wget -qO- $arglink |\
rg -m 1 -o --pcre2 '(?<=<title>)(.*)(?=</title>)' )
>&2 echo $title