Get sid from csdb.dk. - annna - Annna the nice friendly bot.
HTML git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
---
DIR commit 24b8c89f668e2a70246a6614ef80a53bdeac943e
DIR parent 3359ed0e0727f9f5b9b40eb477a13755ab855dc0
HTML Author: eidolon <?>
Date: Wed, 13 Nov 2024 19:36:31 -0500
Get sid from csdb.dk.
Signed-off-by: Annna Robert-Houdin <annna@bitreich.org>
Diffstat:
M annna-message-common | 4 ++++
1 file changed, 4 insertions(+), 0 deletions(-)
---
DIR diff --git a/annna-message-common b/annna-message-common
@@ -164,6 +164,10 @@ case "${text}" in
nuris="text only: ${nuri}"
fi
;;
+ *csdb.dk/release/*)
+ sid=$(awk '/<a href="download\.php.*\.sid/ { match($0, /https:\/\/.*\.sid</); print substr($0, RSTART, RLENGTH-1); exit }' "$tmpf")
+ [ -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