From b2df4b4c8a0e9280620ca6283b74ba0127729efb Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 4 Dec 2023 20:52:31 +0100 Subject: [PATCH] ratt: update urls, fix ratt-hourly --- 2configs/deployment/rss/ratt-hourly.sh | 2 +- 2configs/deployment/rss/ratt.nix | 1 - 2configs/deployment/rss/urls | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/2configs/deployment/rss/ratt-hourly.sh b/2configs/deployment/rss/ratt-hourly.sh index 67f2529..85b0b17 100755 --- a/2configs/deployment/rss/ratt-hourly.sh +++ b/2configs/deployment/rss/ratt-hourly.sh @@ -17,7 +17,7 @@ EOF echo "looping through $URLS" cat "$URLS" | while read line;do echo "fetching $line" - ratt auto "$line" | \ + ratt "$line" | \ xmlstarlet sel -t -c "//item" >> "$OUTFILE" || : done diff --git a/2configs/deployment/rss/ratt.nix b/2configs/deployment/rss/ratt.nix index 2e7ecb4..38cb500 100644 --- a/2configs/deployment/rss/ratt.nix +++ b/2configs/deployment/rss/ratt.nix @@ -11,7 +11,6 @@ in { script = builtins.readFile ./ratt-hourly.sh; scriptArgs = "${./urls} ${out-path}"; - preStart = "install -v -m750 ${./ebk.yml} ${ratt-path}/ebk.yml"; # ratt requires the config file in the cwd serviceConfig.User = "nginx"; serviceConfig.WorkingDirectory= ratt-path; startAt = "00/3:07"; # every 3 hours, fetch latest diff --git a/2configs/deployment/rss/urls b/2configs/deployment/rss/urls index cbc68cc..3b612b7 100644 --- a/2configs/deployment/rss/urls +++ b/2configs/deployment/rss/urls @@ -7,3 +7,4 @@ https://www.ebay-kleinanzeigen.de/s-muehlhausen/dymo/k0l9313r5 https://www.ebay-kleinanzeigen.de/s-zu-verschenken/muehlhausen/lautsprecher/k0c192l9313r5 https://www.ebay-kleinanzeigen.de/s-muehlhausen/preis::40/winkelschleifer/k0l9313r5 https://www.ebay-kleinanzeigen.de/s-muehlhausen/preis::40/kontaktgrill/k0l9313r5 +https://www.kleinanzeigen.de/s-dices-throne/k0r200