forgottenweapons: add idiotbox metadata - annna - Annna the nice friendly bot. | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit 5435158d9cd6d76b34f975de86fb046ed90e5b02 | |
parent d5faf350f257b0d466f000446a0c403e59999b63 | |
Author: eidolon <?> | |
Date: Wed, 16 Oct 2024 15:43:00 -0400 | |
forgottenweapons: add idiotbox metadata | |
Signed-off-by: Annna Robert-Houdin <[email protected]> | |
Diffstat: | |
M annna-message-common | 6 +++++- | |
1 file changed, 5 insertions(+), 1 deletion(-) | |
--- | |
diff --git a/annna-message-common b/annna-message-common | |
@@ -167,7 +167,11 @@ case "${text}" in | |
*www.forgottenweapons.com/*) | |
ua="$(http-user-agent)" | |
resp=$(curl -A "$ua" -sgfm 5 "$uri" | sed -n '/<meta name="des… | |
- [ -n "$resp" ] && nuris="video: ytdl://${resp##*/}" | |
+ if [ -n "$resp" ]; then | |
+ ytid="${resp##*/}" | |
+ nuris="video: ytdl://$ytid ;" | |
+ nuris="$nuris metadata: gophers://codemadness.org/1/id… | |
+ fi | |
;; | |
*www.wsj.com/*|*www.ft.com/*|*www.nytimes.com/*) | |
resp=$(unset -v PROXY; curl -A "$(http-user-agent)" -Igsm 10 -… |