about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2022-07-27 12:51:26 -0500
committerCase Duckworth2022-07-27 12:51:26 -0500
commit24ca3128d064f4ecf6c00bc77f2290a5a6112d49 (patch)
tree9067b3d057156a4ee94e3a860b22677276915d30
parentChange --extra-foreground in dark mode (diff)
downloadsfeed-24ca3128d064f4ecf6c00bc77f2290a5a6112d49.tar.gz
sfeed-24ca3128d064f4ecf6c00bc77f2290a5a6112d49.zip
Add reddit feeds to merging by timestamp only
-rw-r--r--sfeedrc8
1 files changed, 6 insertions, 2 deletions
diff --git a/sfeedrc b/sfeedrc index f6609d3..9b15324 100644 --- a/sfeedrc +++ b/sfeedrc
@@ -376,10 +376,14 @@ fetch() { # fetch(name, url, feedfile)
376merge() { 376merge() {
377 # merge(name, oldfile, newfile) 377 # merge(name, oldfile, newfile)
378 case "$1" in 378 case "$1" in
379 *'Tildes'*) 379 *'Tildes'* | *r_*)
380 # Tildes changes its IDs and titles fairly regularly, which is really 380 # Tildes changes its IDs and titles fairly regularly, which is really
381 # annoying and adds false doubles. So here, remove the last 381 # annoying and adds false doubles. So here, remove the last
382 # element of the path name (the title), and sort ONLY on TIMESTAMP. 382 # element of the path name (the title), and sort ONLY on
383 # TIMESTAMP.
384 #
385 # Reddit also sometimes does weird things, so let's just use
386 # timestamps for that too.
383 cat "$2" "$3" | 387 cat "$2" "$3" |
384 sort -t ' ' -k1,1 -u 388 sort -t ' ' -k1,1 -u
385 ;; 389 ;;