diff options
Diffstat (limited to 'sfeedrc')
-rw-r--r-- | sfeedrc | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/sfeedrc b/sfeedrc index 93ccb02..a18f355 100644 --- a/sfeedrc +++ b/sfeedrc | |||
@@ -307,7 +307,20 @@ fetch() { # fetch(name, url, feedfile) | |||
307 | 307 | ||
308 | merge() { | 308 | merge() { |
309 | # merge(name, oldfile, newfile) | 309 | # merge(name, oldfile, newfile) |
310 | sort -t ' ' -u -k6,6 -k3,3 "$2" "$3" 2>/dev/null | 310 | case "$1" in |
311 | *'Tildes'*) | ||
312 | # Tildes changes its IDs and titles fairly regularly, which is really | ||
313 | # annoying and adds false doubles. So here, remove the last | ||
314 | # element of the path name (the title), and sort ONLY on TIMESTAMP. | ||
315 | cat "$2" "$3" | | ||
316 | sort -t ' ' -k1,1 -u | ||
317 | ;; | ||
318 | *) | ||
319 | # Otherwise, sort on ID and URL. This minimizes the risk of | ||
320 | # false doubles. | ||
321 | sort -t ' ' -u -k6,6 -k3,3 "$2" "$3" 2>/dev/null | ||
322 | ;; | ||
323 | esac | ||
311 | } | 324 | } |
312 | 325 | ||
313 | # Local Variables: | 326 | # Local Variables: |