Introduction
Introduction Statistics Contact Development Disclaimer Help
forgottenweapons: use http-user-agent. - annna - Annna the nice friendly bot.
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit a94e0bf1349495148cfdcf94bba43a12dcf39367
parent 738fe32144c11085af506b996a931c95edd63e36
Author: eidolon <?>
Date: Wed, 16 Oct 2024 12:44:33 -0400
forgottenweapons: use http-user-agent.
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
@@ -165,7 +165,8 @@ case "${text}" in
fi
;;
*www.forgottenweapons.com/*)
- resp=$(curl -sgfm 5 "$uri" | sed -n '/<meta name="description"…
+ ua="$(http-user-agent)"
+ resp=$(curl -A "$ua" -sgfm 5 "$uri" | sed -n '/<meta name="des…
[ -n "$resp" ] && nuris="video: ytdl://${resp##*/}"
;;
*www.wsj.com/*|*www.ft.com/*|*www.nytimes.com/*)
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.