From 8094bf42739f9a13c49e9a88f5d56ef66690561b Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 18 Jul 2022 11:24:07 -0500 Subject: Add more links to each feed --- runsfeed | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'runsfeed') diff --git a/runsfeed b/runsfeed index f108031..da43529 100755 --- a/runsfeed +++ b/runsfeed @@ -23,6 +23,8 @@ main() { get_invidious_url "https://api.invidious.io/instances.json?sort_by=health" log Updating feeds... update "$sfeedrc" + log Updating urls... + update_urls "$sfeedrc" log Generating HTML... html "$sfeedpath"/* >"$SFEED_OUTPUT/index.html" log @@ -38,6 +40,11 @@ main() { log Done. } +update_urls() { + cmd="$(command -v sfeed_update_urls.sh || echo ./sfeed_update_urls.sh)" + "$cmd" "$@" +} + get_invidious_url() { curl -sL "$1" | jq -r .[][1].uri | -- cgit 1.4.1-21-gabe81