Convert ifdb.org game links to my ifdb "gopher frontend" - annna - Annna the nice friendly bot.
(HTM) git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
---
(DIR) commit ed0373bb8b7e8375cf9da2f003b342f8f2dae3e1
(DIR) parent f53fb436f7017c9a1b27ef7e1853f85c9a6d4e6d
(HTM) Author: Julian Schweinsberg <pazz0@0xfa.de>
Date: Mon, 27 Oct 2025 18:09:10 +0100
Convert ifdb.org game links to my ifdb "gopher frontend"
This will only work for games which were part of the latest
(currently 01-Sep-2025) ifdb database dump.
Signed-off-by: Annna Robert-Houdin <annna@bitreich.org>
Diffstat:
M annna-message-common | 4 ++++
1 file changed, 4 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/annna-message-common b/annna-message-common
@@ -287,6 +287,10 @@ case "${IRC_PRIVMSG_TEXT}" in
nuris="$(grep 'property="og:video:secure_url' < "${tmpf}" | sed 's,.*content="\([^"]*\)".*,\1,')"
urititle="$(grep 'name="description' < "${tmpf}" | sed 's,.*content="\([^"]*\)".*,\1,')"
nocuri=1;;
+ *ifdb.org/viewgame*)
+ ifdbid="${uri##*ifdb.org/viewgame?id=}"
+ nuris="gopher://gopher.0xfa.de/1/pazz0/ifdb2/${ifdbid}.gph"
+ nocuri=1;;
*)
mimetype="$(file -b --mime-type "${tmpf}")"
case "${mimetype}" in