Introduction
Introduction Statistics Contact Development Disclaimer Help
Append timestamp from youtube-URLs to the yewtu.be-URL. - annna - Annna the nic…
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit 2d74b67e4c0598adaddda0d2007073209610ce6d
parent a17d8c98291940275e88fa872143baaddcf951ba
Author: Julian Schweinsberg <[email protected]>
Date: Sat, 5 Aug 2023 16:29:20 +0200
Append timestamp from youtube-URLs to the yewtu.be-URL.
Signed-off-by: Annna Robert-Houdin <[email protected]>
Diffstat:
M annna-message-common | 5 +++++
1 file changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/annna-message-common b/annna-message-common
@@ -184,6 +184,11 @@ case "${text}" in
ytid="${ytid%%\?*}"
ytid="${ytid%%&*}"
nuri="https://yewtu.be/watch?v=${ytid}"
+ ytt="$(printf '%s\n' "${uri}" | sed -n 's/.*[&?]t=\([^…
+ if [ -n "${ytt}" ];
+ then
+ nuri="${nuri}&t=${ytt}"
+ fi
else
ytid=""
nuri="https://yewtu.be/${uri#https*://*/}"
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.