diff options
author | Case Duckworth | 2022-07-27 12:51:26 -0500 |
---|---|---|
committer | Case Duckworth | 2022-07-27 12:51:26 -0500 |
commit | 24ca3128d064f4ecf6c00bc77f2290a5a6112d49 (patch) | |
tree | 9067b3d057156a4ee94e3a860b22677276915d30 /sfeedrc | |
parent | Change --extra-foreground in dark mode (diff) | |
download | sfeed-24ca3128d064f4ecf6c00bc77f2290a5a6112d49.tar.gz sfeed-24ca3128d064f4ecf6c00bc77f2290a5a6112d49.zip |
Add reddit feeds to merging by timestamp only
Diffstat (limited to 'sfeedrc')
-rw-r--r-- | sfeedrc | 8 |
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) | |||
376 | merge() { | 376 | merge() { |
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 | ;; |