1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

feat(radio): torify lyrikline

This commit is contained in:
2023-03-20 12:25:43 +01:00
parent 97ae9ec0bf
commit 7e86718b0f
2 changed files with 2 additions and 1 deletions

View File

@@ -24,6 +24,7 @@ in {
./weechat.nix
../../configs/monitoring.nix
../../configs/nix.nix
../../configs/tor.nix
../../configs/save-space.nix
../../configs/retiolum.nix
../../configs/spacetime.nix

View File

@@ -17,7 +17,7 @@
}
lyrikline=https://www.lyrikline.org
random_route="$(${pkgs.curl}/bin/curl -sSL "$lyrikline/index.php/tools/getrandompoem" --data-raw 'lang=de' --compressed | ${pkgs.jq}/bin/jq -r .link)"
random_route="$(${pkgs.tor}/bin/torify ${pkgs.curl}/bin/curl -sSL "$lyrikline/index.php/tools/getrandompoem" --data-raw 'lang=de' --compressed | ${pkgs.jq}/bin/jq -r .link)"
poem_url="$lyrikline$random_route"
${pkgs.curl}/bin/curl -sSL "$poem_url" > "$html"