diff options
author | tv <tv@krebsco.de> | 2019-08-12 23:51:43 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2019-08-12 23:53:03 +0200 |
commit | 0732ecd2a565c446c895a0a68b7c436765afab69 (patch) | |
tree | 778cd4ce90ca608643abd76a963fcd27ee2731b8 /tv/2configs | |
parent | 47b8d6dfec7e5d3dec225933626597383030e547 (diff) |
tv urlwatch: add xml and xml'
Diffstat (limited to 'tv/2configs')
-rw-r--r-- | tv/2configs/urlwatch.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tv/2configs/urlwatch.nix b/tv/2configs/urlwatch.nix index 4fb1110..b2364e6 100644 --- a/tv/2configs/urlwatch.nix +++ b/tv/2configs/urlwatch.nix @@ -7,6 +7,13 @@ with import <stockholm/lib>; concatMapStringsSep " " shell.escape (toList args) }"; }; + xml = xml' ["--format" "-"]; + xml' = args: url: { + inherit url; + filter = "system:${pkgs.libxml2}/bin/xmllint ${ + concatMapStringsSep " " shell.escape (toList args) + }"; + }; in { krebs.urlwatch = { enable = true; |