forgottenweapons: spruce - annna - Annna the nice friendly bot.
(HTM) git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
---
(DIR) commit a914fc7848ddc05340ee9cb7710e868b4dd82277
(DIR) parent 24b8c89f668e2a70246a6614ef80a53bdeac943e
(HTM) Author: eidolon <?>
Date: Thu, 14 Nov 2024 22:40:07 -0500
forgottenweapons: spruce
Signed-off-by: Annna Robert-Houdin <annna@bitreich.org>
Diffstat:
M annna-message-common | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
(DIR) diff --git a/annna-message-common b/annna-message-common
@@ -169,9 +169,8 @@ case "${text}" in
[ -n "$sid" ] && nuris="listen: $sid"
;;
*www.forgottenweapons.com/*)
- yturi=$(sed -n '/<meta name="description"/ s/.*\(https:\/\/youtu\.be\/[-A-Za-z0-9_]\{11\}\).*/\1/p' "$tmpf")
- if [ -n "$yturi" ]; then
- ytid="${yturi##*/}"
+ ytid=$(sed -n '/<meta name="description"/ s/.*https:\/\/youtu\.be\/\([-A-Za-z0-9_]\{11\}\).*/\1/p' "$tmpf")
+ if [ -n "$ytid" ]; then
nuris="video: ytdl://$ytid ;"
nuris="$nuris metadata: gophers://codemadness.org/1/idiotbox.cgi?v=$ytid"
fi