From 93d25a94fe79b686964d2ea69b87503768abbaf4 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Tue, 19 Jul 2022 13:07:06 -0500 Subject: Don't update invidious host if NOFETCH --- runsfeed | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'runsfeed') diff --git a/runsfeed b/runsfeed index a08f1a3..bc49937 100755 --- a/runsfeed +++ b/runsfeed @@ -22,8 +22,12 @@ main() { test -d "$(dirname "$sfeedrc")" || mkdir -p "$(dirname "$sfeedrc")" test -d "$sfeedpath" || mkdir -p "$sfeedpath" - log Finding Invidious host... - get_invidious_url "https://api.invidious.io/instances.json?sort_by=health" + if ! $NOFETCH; then + log Finding Invidious host... + get_invidious_url "https://api.invidious.io/instances.json?sort_by=health" + fi + log Removing unsubscribed feeds... + remove_unsubs "$sfeedrc" log Updating feeds... update "$sfeedrc" log Updating urls... -- cgit 1.4.1-21-gabe81