URI: 
       forgottenweapons: add idiotbox metadata - 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 5435158d9cd6d76b34f975de86fb046ed90e5b02
   DIR parent d5faf350f257b0d466f000446a0c403e59999b63
  HTML Author: eidolon <?>
       Date:   Wed, 16 Oct 2024 15:43:00 -0400
       
       forgottenweapons: add idiotbox metadata
       
       Signed-off-by: Annna Robert-Houdin <annna@bitreich.org>
       
       Diffstat:
         M annna-message-common                |       6 +++++-
       
       1 file changed, 5 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/annna-message-common b/annna-message-common
       @@ -167,7 +167,11 @@ case "${text}" in
                *www.forgottenweapons.com/*)
                        ua="$(http-user-agent)"
                        resp=$(curl -A "$ua" -sgfm 5 "$uri" | sed -n '/<meta name="description"/ s/.*\(https:\/\/youtu\.be\/[-A-Za-z0-9_]\{11\}\).*/\1/p')
       -                [ -n "$resp" ] && nuris="video: ytdl://${resp##*/}"
       +                if [ -n "$resp" ]; then
       +                        ytid="${resp##*/}"
       +                        nuris="video: ytdl://$ytid ;"
       +                        nuris="$nuris metadata: gophers://codemadness.org/1/idiotbox.cgi?v=$ytid"
       +                fi
                        ;;
                *www.wsj.com/*|*www.ft.com/*|*www.nytimes.com/*)
                        resp=$(unset -v PROXY; curl -A "$(http-user-agent)" -Igsm 10 -o /dev/null -w '%{response_code},%{redirect_url}\n' "https://archive.is/newest/$uri")