From 7bdd0562343b99009f5ea80bb12c6c16a77d8e7f Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 18 Jul 2022 08:56:25 -0500 Subject: Filter titles and things --- sfeedrc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'sfeedrc') diff --git a/sfeedrc b/sfeedrc index b8a6577..136eaf9 100644 --- a/sfeedrc +++ b/sfeedrc @@ -154,6 +154,13 @@ filter() { *NPR*) sed 's@www\.npr\.org@text.npr.org@' ;; + r_* | r/*) # reddit (not sure when / => _) + sed -e 's@old\.reddit\.com@teddit.net@' \ + -e 's@reddit\.com@teddit.net@' + ;; + 'Saturday Morning Breakfast Cereal') + sed 's@Saturday Morning Breakfast Cereal - @@' + ;; *) cat ;; esac | filter_add_empties | @@ -205,9 +212,11 @@ filter_filter_links() { filter_html_entities() { # convert HTML entities into dumb counterparts + # (and weird shit to normal shit, too) awk '{ gsub(/"/,"\""); gsub(/"/,"\""); gsub(/'/,"'\''"); gsub(/'/,"'\''"); + gsub(/’/,"'\''"); gsub(/&/,"\\&"); # MUST BE LAST!; print }' -- cgit 1.4.1-21-gabe81