about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2022-07-26 11:28:52 -0500
committerCase Duckworth2022-07-26 11:28:52 -0500
commit16ae55df9ff6e3cfad40638b6440f42cb3b8f5af (patch)
tree5a96f32588e73b53736e32017e60c2cec5f5f206
parentWhitespace (diff)
downloadsfeed-16ae55df9ff6e3cfad40638b6440f42cb3b8f5af.tar.gz
sfeed-16ae55df9ff6e3cfad40638b6440f42cb3b8f5af.zip
Treat tildes.net special in merging
-rw-r--r--sfeedrc15
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
308merge() { 308merge() {
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: