about summary refs log tree commit diff stats
path: root/runsfeed
diff options
context:
space:
mode:
authorCase Duckworth2022-07-18 11:24:19 -0500
committerCase Duckworth2022-07-18 11:24:19 -0500
commit9846f1f6719763c104180c2574b11c040d3a4e1d (patch)
tree9d0828d2753ba29bcf80ef22357acfa7bdfc217b /runsfeed
parentAdd more links to each feed (diff)
downloadsfeed-9846f1f6719763c104180c2574b11c040d3a4e1d.tar.gz
sfeed-9846f1f6719763c104180c2574b11c040d3a4e1d.zip
Add NOFETCH option
Diffstat (limited to 'runsfeed')
-rwxr-xr-xrunsfeed4
1 files changed, 4 insertions, 0 deletions
diff --git a/runsfeed b/runsfeed index da43529..0e076d1 100755 --- a/runsfeed +++ b/runsfeed
@@ -4,6 +4,9 @@
4# set -euo pipefail 4# set -euo pipefail
5 5
6main() { 6main() {
7 NOFETCH=false
8 [ "x$1" = "x-n" ] && NOFETCH=true
9 export NOFETCH
7 export SFEED_CONFIG="$HOME/.sfeed" 10 export SFEED_CONFIG="$HOME/.sfeed"
8 # SFEED_CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/sfeed" 11 # SFEED_CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/sfeed"
9 export SFEED_DATA="$HOME/.sfeed" 12 export SFEED_DATA="$HOME/.sfeed"
@@ -46,6 +49,7 @@ update_urls() {
46} 49}
47 50
48get_invidious_url() { 51get_invidious_url() {
52 "${NOFETCH:-false}" && return
49 curl -sL "$1" | 53 curl -sL "$1" |
50 jq -r .[][1].uri | 54 jq -r .[][1].uri |
51 grep -v onion | 55 grep -v onion |