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:
parent
b6fd03ebb4
commit
7a566a3a56
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user