diff options
author | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-10-02 23:49:08 +0200 |
---|---|---|
committer | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-10-02 23:49:08 +0200 |
commit | 3efa89073a45c658d9a75d3986c3b8db52f47358 (patch) | |
tree | 147d27a7333a92295315dd92c14f723c43fd4c73 | |
parent | d2450c6d309ea296d0f74b1d72f71261254349e4 (diff) | |
download | nixos-3efa89073a45c658d9a75d3986c3b8db52f47358.tar nixos-3efa89073a45c658d9a75d3986c3b8db52f47358.tar.gz nixos-3efa89073a45c658d9a75d3986c3b8db52f47358.tar.bz2 nixos-3efa89073a45c658d9a75d3986c3b8db52f47358.tar.xz nixos-3efa89073a45c658d9a75d3986c3b8db52f47358.zip |
syntax
-rw-r--r-- | hel/recv-media.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hel/recv-media.nix b/hel/recv-media.nix index e3189f79..ae56f991 100644 --- a/hel/recv-media.nix +++ b/hel/recv-media.nix | |||
@@ -36,7 +36,7 @@ writeScriptBin "recv-media" '' | |||
36 | ${if notifyUser == null then "" else "#"}exit 0 | 36 | ${if notifyUser == null then "" else "#"}exit 0 |
37 | 37 | ||
38 | ( | 38 | ( |
39 | summary=${if showTitle then ''$(ffmpeg -i "''${target}" -f ffmetadata pipe:1 2>/dev/null | sed -r '/^title=/!d; s/^title=//')'' else ''""'' fi} | 39 | summary=${if showTitle then ''$(ffmpeg -i "''${target}" -f ffmetadata pipe:1 2>/dev/null | sed -r '/^title=/!d; s/^title=//')'' else ''""''} |
40 | [[ -z "''${summary}" ]] && summary=$(basename "$1") | 40 | [[ -z "''${summary}" ]] && summary=$(basename "$1") |
41 | printf "%s\n%s\n" "''${summary}" "" | notify-${notifyUser} -a recv-media || true | 41 | printf "%s\n%s\n" "''${summary}" "" | notify-${notifyUser} -a recv-media || true |
42 | ) || true | 42 | ) || true |