Introduction
Introduction Statistics Contact Development Disclaimer Help
Apply new metadata changes by pazz0. - annna - Annna the nice friendly bot.
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit dd053a7c06c9cad5562a5a420f159660eb03d79f
parent 3b639a15d3c5aa8304e76c5dc80fb1f15b873dfb
Author: Annna Robert-Houdin <[email protected]>
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(-)
---
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 -…
+ 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/idiotb…
+ if [ -n "${ytid}" ];
+ then
+ nuris="${nuris} ; metadata: gophers://codemadness.org/…
+ fi
nocuri=1
;;
*tv.brain.rip/???-???*)
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.