~mil/sxmo-utils

ref: f058e173695853bf9c2bab071c94612fb249bad3 sxmo-utils/configs/sxmo_sfeedrc -rw-r--r-- 1.4 KiB
f058e173Miles Alan SIGKILL on close menu in dialer 1 year, 11 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#sfeedpath="$HOME/.sfeed/feeds"
USERAGENT="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.162 Safari/537.36"

#[ -z "$https_proxy" ] && echo "Please set https_proxy" 2>&1 && exit 1
#[ -z "$http_proxy" ] && echo "Please set http_proxy" 2>&1 && exit 1

# fetch a feed via HTTP/HTTPS etc.
# fetch(name, url, feedfile)
fetch() {
	# fail on redirects, hide User-Agent, timeout is 15 seconds.
	curl -L --max-redirs 2 -H "User-Agent: $USERAGENT" -f -s -m 15 \
		"$2" 2>/dev/null
}

# list of feeds to fetch:
feeds() {
	# feed <name> <feedurl> [basesiteurl] [encoding]
	feed 'Tech/HN' 'https://news.ycombinator.com/rss'
	feed 'Tech/Lobsters' 'https://lobste.rs/rss'
	feed 'Tech/Pine64'   'https://www.pine64.org/rss'
	feed 'Tech/Slashdot' 'http://feeds.feedburner.com/SlashdotSitenews'
	feed 'Tech/Suckless' 'http://git.suckless.org/sites/atom.xml'
	feed 'Tech/Soylent'  'http://soylentnews.org/index.rss'

	feed 'Yt/Distrotube' 'https://www.youtube.com/feeds/videos.xml?channel_id=UCVls1GmFKf6WlTraIb_IaJg'
	feed 'Yt/Budlabs' 'https://www.youtube.com/feeds/videos.xml?channel_id=UCi8XrDg1bK_MJ0goOnbpTMQ'
	feed 'Yt/LukeSmith' 'https://www.youtube.com/feeds/videos.xml?channel_id=UC2eYFnH61tmytImy1mTYvhA'
	feed 'Yt/Rossman' 'https://www.youtube.com/feeds/videos.xml?channel_id=UCl2mFZoRqjw_ELax4Yisf6w'
	feed 'Yt/Brodie' 'https://www.youtube.com/feeds/videos.xml?channel_id=UCld68syR8Wi-GY_n4CaoJGA'
}