about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2022-07-19 13:07:06 -0500
committerCase Duckworth2022-07-19 13:07:06 -0500
commit93d25a94fe79b686964d2ea69b87503768abbaf4 (patch)
treef35dddf5c049db43ba88283270c732efc27d064c
parentAdd TODO (diff)
downloadsfeed-93d25a94fe79b686964d2ea69b87503768abbaf4.tar.gz
sfeed-93d25a94fe79b686964d2ea69b87503768abbaf4.zip
Don't update invidious host if NOFETCH
-rwxr-xr-xrunsfeed8
1 files changed, 6 insertions, 2 deletions
diff --git a/runsfeed b/runsfeed index a08f1a3..bc49937 100755 --- a/runsfeed +++ b/runsfeed
@@ -22,8 +22,12 @@ main() {
22 test -d "$(dirname "$sfeedrc")" || mkdir -p "$(dirname "$sfeedrc")" 22 test -d "$(dirname "$sfeedrc")" || mkdir -p "$(dirname "$sfeedrc")"
23 test -d "$sfeedpath" || mkdir -p "$sfeedpath" 23 test -d "$sfeedpath" || mkdir -p "$sfeedpath"
24 24
25 log Finding Invidious host... 25 if ! $NOFETCH; then
26 get_invidious_url "https://api.invidious.io/instances.json?sort_by=health" 26 log Finding Invidious host...
27 get_invidious_url "https://api.invidious.io/instances.json?sort_by=health"
28 fi
29 log Removing unsubscribed feeds...
30 remove_unsubs "$sfeedrc"
27 log Updating feeds... 31 log Updating feeds...
28 update "$sfeedrc" 32 update "$sfeedrc"
29 log Updating urls... 33 log Updating urls...