forgottenweapons: use tmpf instead of curl. - annna - Annna the nice friendly b… | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit 45074dd5e3da0fe6b78e18f01a68ff99d5453e52 | |
parent f902c65482ccd74e780b0296f373c5d89d857e65 | |
Author: eidolon <?> | |
Date: Thu, 17 Oct 2024 13:03:45 -0400 | |
forgottenweapons: use tmpf instead of curl. | |
Signed-off-by: Annna Robert-Houdin <[email protected]> | |
Diffstat: | |
M annna-message-common | 7 +++---- | |
1 file changed, 3 insertions(+), 4 deletions(-) | |
--- | |
diff --git a/annna-message-common b/annna-message-common | |
@@ -165,10 +165,9 @@ case "${text}" in | |
fi | |
;; | |
*www.forgottenweapons.com/*) | |
- ua="$(http-user-agent)" | |
- resp=$(curl -A "$ua" -sgfm 5 "$uri" | sed -n '/<meta name="des… | |
- if [ -n "$resp" ]; then | |
- ytid="${resp##*/}" | |
+ yturi=$(sed -n '/<meta name="description"/ s/.*\(https:\/\/you… | |
+ if [ -n "$yturi" ]; then | |
+ ytid="${yturi##*/}" | |
nuris="video: ytdl://$ytid ;" | |
nuris="$nuris metadata: gophers://codemadness.org/1/id… | |
fi |