about summary refs log tree commit diff stats
path: root/runsfeed
diff options
context:
space:
mode:
Diffstat (limited to 'runsfeed')
-rwxr-xr-xrunsfeed7
1 files changed, 7 insertions, 0 deletions
diff --git a/runsfeed b/runsfeed index f108031..da43529 100755 --- a/runsfeed +++ b/runsfeed
@@ -23,6 +23,8 @@ main() {
23 get_invidious_url "https://api.invidious.io/instances.json?sort_by=health" 23 get_invidious_url "https://api.invidious.io/instances.json?sort_by=health"
24 log Updating feeds... 24 log Updating feeds...
25 update "$sfeedrc" 25 update "$sfeedrc"
26 log Updating urls...
27 update_urls "$sfeedrc"
26 log Generating HTML... 28 log Generating HTML...
27 html "$sfeedpath"/* >"$SFEED_OUTPUT/index.html" 29 html "$sfeedpath"/* >"$SFEED_OUTPUT/index.html"
28 log 30 log
@@ -38,6 +40,11 @@ main() {
38 log Done. 40 log Done.
39} 41}
40 42
43update_urls() {
44 cmd="$(command -v sfeed_update_urls.sh || echo ./sfeed_update_urls.sh)"
45 "$cmd" "$@"
46}
47
41get_invidious_url() { 48get_invidious_url() {
42 curl -sL "$1" | 49 curl -sL "$1" |
43 jq -r .[][1].uri | 50 jq -r .[][1].uri |