Introduction
Introduction Statistics Contact Development Disclaimer Help
Handle youtube shorts URLs. - annna - Annna the nice friendly bot.
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit 697b46f31de9a6c9e922dbf0a173baf89defac39
parent 0bb8b11ba2b2f83bb71322a82c7e913b6e45c2ee
Author: Julian Schweinsberg <[email protected]>
Date: Wed, 9 Aug 2023 11:18:45 +0200
Handle youtube shorts URLs.
Signed-off-by: Annna Robert-Houdin <[email protected]>
Diffstat:
M annna-message-common | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/annna-message-common b/annna-message-common
@@ -177,10 +177,11 @@ case "${text}" in
fi
;;
*youtube.com/*|*youtu.be/*)
- if [ -z "${uri##*youtu.be/*}" ] || [ -z "${uri##*/watch?v=*}" …
+ if [ -z "${uri##*youtu.be/*}" ] || [ -z "${uri##*/watch?v=*}" …
then
ytid="${uri#https*://*/watch?v=}"
ytid="${ytid##*embed/}"
+ ytid="${ytid##*shorts/}"
ytid="${ytid##*youtu.be/}"
ytid="${ytid%%\?*}"
ytid="${ytid%%&*}"
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.