URI: 
       forgottenweapons: use tmpf instead of curl. - 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 45074dd5e3da0fe6b78e18f01a68ff99d5453e52
   DIR parent f902c65482ccd74e780b0296f373c5d89d857e65
  HTML Author: eidolon <?>
       Date:   Thu, 17 Oct 2024 13:03:45 -0400
       
       forgottenweapons: use tmpf instead of curl.
       
       Signed-off-by: Annna Robert-Houdin <annna@bitreich.org>
       
       Diffstat:
         M annna-message-common                |       7 +++----
       
       1 file changed, 3 insertions(+), 4 deletions(-)
       ---
   DIR diff --git a/annna-message-common b/annna-message-common
       @@ -165,10 +165,9 @@ case "${text}" in
                        fi
                        ;;
                *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')
       -                if [ -n "$resp" ]; then
       -                        ytid="${resp##*/}"
       +                yturi=$(sed -n '/<meta name="description"/ s/.*\(https:\/\/youtu\.be\/[-A-Za-z0-9_]\{11\}\).*/\1/p' "$tmpf")
       +                if [ -n "$yturi" ]; then
       +                        ytid="${yturi##*/}"
                                nuris="video: ytdl://$ytid ;"
                                nuris="$nuris metadata: gophers://codemadness.org/1/idiotbox.cgi?v=$ytid"
                        fi