diff options
Diffstat (limited to 'sfeedrc')
-rw-r--r-- | sfeedrc | 2 |
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; }' |