diff options
author | Case Duckworth | 2022-07-18 11:24:07 -0500 |
---|---|---|
committer | Case Duckworth | 2022-07-18 11:24:07 -0500 |
commit | 8094bf42739f9a13c49e9a88f5d56ef66690561b (patch) | |
tree | 650fa65bdebbc2099b42cf31d2b0d76df0e1a5e4 /runsfeed | |
parent | Add padding to footer (diff) | |
download | sfeed-8094bf42739f9a13c49e9a88f5d56ef66690561b.tar.gz sfeed-8094bf42739f9a13c49e9a88f5d56ef66690561b.zip |
Add more links to each feed
Diffstat (limited to 'runsfeed')
-rwxr-xr-x | runsfeed | 7 |
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 | ||
43 | update_urls() { | ||
44 | cmd="$(command -v sfeed_update_urls.sh || echo ./sfeed_update_urls.sh)" | ||
45 | "$cmd" "$@" | ||
46 | } | ||
47 | |||
41 | get_invidious_url() { | 48 | get_invidious_url() { |
42 | curl -sL "$1" | | 49 | curl -sL "$1" | |
43 | jq -r .[][1].uri | | 50 | jq -r .[][1].uri | |