# -*- sh -*- SFEED="$HOME/.sfeed" USER_AGENT='Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0' sfeedpath="$SFEED/weedsfeeds" maxjobs="$(nproc)" ### Feeds ####################################################### feeds() { ## feed NAME FEED_URL BASE_URL ENCODING # defined by sfeedrc(5). feed dozens "https://tilde.town/~dozens/rsspect/feed.xml" "https://tilde.town/~dozens/" feed acdw "https://acdw.casa/weed.xml" "https://acdw.casa" feed "lucidiot's RSRSSS" "https://envs.net/~lucidiot/rsrsss/feed.xml" "https://envs.net/~lucidiot/rsrsss/" "" feed "lucitoast" "https://breadpunk.club/~lucitoast/weed.xml" "https://breadpunk.club/~lucitoast/" } # Fetch ######################################################### fetch() { # fetch(name, url, feedfile) "${NOFETCH:-false}" && return curl -s -L \ --max-redirs 3 \ --header "'User-Agent: $USER_AGENT'" \ --fail \ --max-time 15 \ "$2" } # Local Variables: # truncate-lines: t # End: