about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2022-08-02 15:22:08 -0500
committerCase Duckworth2022-08-02 15:22:08 -0500
commit2b753c8eaa58a461b1d6a4c289c9b5f4102066e6 (patch)
tree120bad39b6e35d1f03b44524bddf26c66d05bc8b
parentSilence rm (diff)
downloadsfeed-2b753c8eaa58a461b1d6a4c289c9b5f4102066e6.tar.gz
sfeed-2b753c8eaa58a461b1d6a4c289c9b5f4102066e6.zip
ACTUALLY fix links
-rw-r--r--sfeedrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfeedrc b/sfeedrc index b09c20b..7ceeff8 100644 --- a/sfeedrc +++ b/sfeedrc
@@ -292,7 +292,7 @@ print
292 # into a URL to get to the comments. 292 # into a URL to get to the comments.
293 gawk -v SUBREDDIT="$1" -v ALT=i.reddit.com \ 293 gawk -v SUBREDDIT="$1" -v ALT=i.reddit.com \
294 'BEGIN { FS="\t"; OFS="\t"; sub("^r_","r/",SUBREDDIT); } 294 'BEGIN { FS="\t"; OFS="\t"; sub("^r_","r/",SUBREDDIT); }
295 { $6 = "https://" ALT "/" SUBREDDIT "/" substr($6, 4); } 295 { $6 = "https://" ALT "/" SUBREDDIT "/comments/" substr($6, 4); }
296 { if (match($4,/<a href="([^"]*)">\[link\]<\/a>/,ln)) $3 = ln[1]; } 296 { if (match($4,/<a href="([^"]*)">\[link\]<\/a>/,ln)) $3 = ln[1]; }
297 { gsub(/www\.reddit\.com/, ALT, $0); } 297 { gsub(/www\.reddit\.com/, ALT, $0); }
298 { print; }' 298 { print; }'