diff options
Diffstat (limited to 'etc/sfeedrc')
-rw-r--r-- | etc/sfeedrc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/etc/sfeedrc b/etc/sfeedrc new file mode 100644 index 0000000..2c5686d --- /dev/null +++ b/etc/sfeedrc @@ -0,0 +1,13 @@ +# some feeds don't like hidden user agent +fetch() { + # fail on redirects, timeout is 15 seconds. + curl -L --max-redirs 0 -f -s -m 15 \ + "$2" 2>/dev/null +} + +sfeedpath="$HOME_DATA/sfeed/feeds" + +# list of feeds to fetch: +feeds() { + # feed <name> <feedurl> [basesiteurl] [encoding] +} |