URI: 
       Apply new metadata changes by pazz0. - 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 dd053a7c06c9cad5562a5a420f159660eb03d79f
   DIR parent 3b639a15d3c5aa8304e76c5dc80fb1f15b873dfb
  HTML Author: Annna Robert-Houdin <annna@bitreich.org>
       Date:   Thu,  3 Aug 2023 13:07:57 +0200
       
       Apply new metadata changes by pazz0.
       
       Diffstat:
         M annna-message-common                |      21 ++++++++++++++++-----
       
       1 file changed, 16 insertions(+), 5 deletions(-)
       ---
   DIR diff --git a/annna-message-common b/annna-message-common
       @@ -175,15 +175,26 @@ case "${text}" in
                        fi
                        ;;
                *youtube.com/*|*youtu.be/*)
       -                nuri="https://yewtu.be/${uri#https*://*/}"
       +                if [ -z "${uri##*youtu.be/*}" -o -z "${uri##*/watch?v=*}" -o -z "${uri##*/embed/*}" ];
       +                then
       +                        ytid="${uri#https*://*/watch?v=}"
       +                        ytid="${ytid##*embed/}"
       +                        ytid="${ytid##*youtu.be/}"
       +                        ytid="${ytid%%\?*}"
       +                        ytid="${ytid%%&*}"
       +                        nuri="https://yewtu.be/watch?v=${ytid}"
       +                else
       +                        ytid=""
       +                        nuri="https://yewtu.be/${uri#https*://*/}"
       +                fi
                        fetch-uri "${nuri}" > "${tmpf}"
                        urititle="$(curl-grabtitle "${nuri}")"
                        sturi="$(subtitle-paste "${uri}")"
                        nuris="invidious: ${nuri}"
       -                ytid="${uri#https*://*/watch?v=}"
       -                ytid="${ytid##*embed/}"
       -                ytid="${ytid##*youtu.be/}"
       -                nuris="${nuris} ; metadata: gophers://codemadness.org/1/idiotbox.cgi?v=${ytid}"
       +                if [ -n "${ytid}" ];
       +                then
       +                        nuris="${nuris} ; metadata: gophers://codemadness.org/1/idiotbox.cgi?v=${ytid}"
       +                fi
                        nocuri=1
                        ;;
                *tv.brain.rip/???-???*)