forgottenweapons: spruce - annna - Annna the nice friendly bot. | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit a914fc7848ddc05340ee9cb7710e868b4dd82277 | |
parent 24b8c89f668e2a70246a6614ef80a53bdeac943e | |
Author: eidolon <?> | |
Date: Thu, 14 Nov 2024 22:40:07 -0500 | |
forgottenweapons: spruce | |
Signed-off-by: Annna Robert-Houdin <[email protected]> | |
Diffstat: | |
M annna-message-common | 5 ++--- | |
1 file changed, 2 insertions(+), 3 deletions(-) | |
--- | |
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:\/\/you… | |
- if [ -n "$yturi" ]; then | |
- ytid="${yturi##*/}" | |
+ ytid=$(sed -n '/<meta name="description"/ s/.*https:\/\/youtu\… | |
+ if [ -n "$ytid" ]; then | |
nuris="video: ytdl://$ytid ;" | |
nuris="$nuris metadata: gophers://codemadness.org/1/id… | |
fi |