diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2021-03-01 22:27:11 +0100 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2021-03-01 22:27:11 +0100 |
commit | f0e0326248e3a8c148eea64f77a5a1f84cf8d80b (patch) | |
tree | b3e7af1bd4f1d8311230199c00df445ea8774018 | |
parent | 16b7cc14e0681531d0d0e7c73e7c9ee903d0b1a9 (diff) |
sfeed_update: fix baseurl substitution
Follow-up from a rushed commit:
commit 58555779d123be68c0acf9ea898931d656ec6d63
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun Feb 28 13:33:21 2021 +0100
sfeed_update: simplify, use feedurl directly
This also make it possible to use non-authoritive URLs as a baseurl, like
"magnet:" URLs.
-rwxr-xr-x | sfeed_update | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sfeed_update b/sfeed_update index 94b598c..90e9d5c 100755 --- a/sfeed_update +++ b/sfeed_update @@ -109,7 +109,7 @@ _feed() { rm -f "${tmpfeedfile}.fetch" # if baseurl is empty then use feedurl. - if ! parse "${name}" "${feedurl}" "${basesiteurl:-feedurl}" < "${tmpfeedfile}.utf8" > "${tmpfeedfile}.tsv"; then + if ! parse "${name}" "${feedurl}" "${basesiteurl:-${feedurl}}" < "${tmpfeedfile}.utf8" > "${tmpfeedfile}.tsv"; then log "${name}" "FAIL (PARSE)" return fi |