mirror of
https://github.com/RyanGreenup/cadmus.git
synced 2025-07-31 03:10:18 +02:00
Significantly improved webtitle printing time
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user