Start to use c.dcgi - gophercgis - Collection of gopher CGI/DCGI for geomyidae (HTM) hg clone https://bitbucket.org/iamleot/gophercgis (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) changeset 366d0e7d0826adda68c3bb12dc4b216cb72d9e00 (DIR) parent b0f380778f414b22818a7e5b2e56359e4f5c0a69 (HTM) Author: Leonardo Taccari <iamleot@gmail.com> Date: Wed, 8 Aug 2018 03:50:53 Start to use c.dcgi Diffstat: reddit/r.dcgi | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) --- diff -r b0f380778f41 -r 366d0e7d0826 reddit/r.dcgi --- a/reddit/r.dcgi Wed Aug 08 03:50:12 2018 +0200 +++ b/reddit/r.dcgi Wed Aug 08 03:50:53 2018 +0200 @@ -1,5 +1,7 @@ #!/bin/sh +COMMENTS_CGI="/cgi/reddit/c.dcgi" + subreddit="$2" ua="" url="https://www.reddit.com/r/${subreddit}/.json" @@ -16,6 +18,7 @@ "URL:\(.url | gsub("\\|"; "\\|"))|server|port]", "t" + .author + " " + ( .created_utc | strftime("%F %H:%M") ), "tScore: \(.score)", - "tComments: \(.num_comments)", + "[1|Comments: \(.num_comments)|" + + "'"${COMMENTS_CGI}?${subreddit}/"'" + "\(.id)|server|port]", "t" '