diff options
-rw-r--r-- | sfeedrc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sfeedrc b/sfeedrc index e4a7f37..93ccb02 100644 --- a/sfeedrc +++ b/sfeedrc | |||
@@ -223,11 +223,8 @@ print | |||
223 | # into a URL to get to the comments. | 223 | # into a URL to get to the comments. |
224 | awk -v SUBREDDIT="$1" -v ALT=i.reddit.com \ | 224 | awk -v SUBREDDIT="$1" -v ALT=i.reddit.com \ |
225 | 'BEGIN {FS="\t";OFS="\t"} | 225 | 'BEGIN {FS="\t";OFS="\t"} |
226 | { $6 = $3 #ALT "/" SUBREDDIT "/" substr($6, 4) | 226 | { $6 = $3 #ALT "/" SUBREDDIT "/" substr($6, 4) } |
227 | } | 227 | { if (match($4,/<a href="([^"]*)">\[link\]<\/a>/,ln)) $3 = ln[1] } |
228 | { | ||
229 | if (match($4,/<a href="([^"]*)">\[link\]<\/a>/,ln)) $3 = ln[1] | ||
230 | } | ||
231 | { gsub(/www\.reddit\.com/, ALT, $0) } | 228 | { gsub(/www\.reddit\.com/, ALT, $0) } |
232 | { print }' | 229 | { print }' |
233 | ;; | 230 | ;; |