Fix plain text youtube URL thingies - 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 97de978b5f71c8b33c0c847984c17595291f2ec1
DIR parent cfd2e67314c51c4346ae51d3720ef73433ddcf61
HTML Author: Julian Schweinsberg <pazz0@0xfa.de>
Date: Wed, 27 Nov 2024 20:42:54 +0100
Fix plain text youtube URL thingies
Signed-off-by: Annna Robert-Houdin <annna@bitreich.org>
Diffstat:
M annna-message-common | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/annna-message-common b/annna-message-common
@@ -218,7 +218,7 @@ case "${text}" in
*youtube.com/*|*youtu.be/*)
if [ -z "${uri##*youtu.be/*}" ] || [ -z "${uri##*/watch?v=*}" ] || [ -z "${uri##*/embed/*}" ] || [ -z "${uri##*/shorts/*}" ];
then
- ytid="${uri#https*://*/watch?v=}"
+ ytid="${uri#http*://*/watch?v=}"
ytid="${ytid##*embed/}"
ytid="${ytid##*shorts/}"
ytid="${ytid##*youtu.be/}"