diff options
author | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-10-02 23:41:03 +0200 |
---|---|---|
committer | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-10-02 23:41:03 +0200 |
commit | a781c344eadd68cb670aff7c3a5feda8891203ff (patch) | |
tree | b146709dcebb37a966cf4c20c4ed0bc32bcd217a | |
parent | f72b34f1a7655ed08a706931078224f922ad2fd5 (diff) | |
download | nixos-a781c344eadd68cb670aff7c3a5feda8891203ff.tar nixos-a781c344eadd68cb670aff7c3a5feda8891203ff.tar.gz nixos-a781c344eadd68cb670aff7c3a5feda8891203ff.tar.bz2 nixos-a781c344eadd68cb670aff7c3a5feda8891203ff.tar.xz nixos-a781c344eadd68cb670aff7c3a5feda8891203ff.zip |
fix ffmpeg invocation
-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 c2223dd8..d9ad5d29 100644 --- a/hel/recv-media.nix +++ b/hel/recv-media.nix | |||
@@ -34,7 +34,7 @@ writeScriptBin "recv-media" '' | |||
34 | fi | 34 | fi |
35 | 35 | ||
36 | ( | 36 | ( |
37 | summary=$(ffmpeg -i "''${target}" -f ffmetadata 2>/dev/null | tee /dev/stderr | sed -r '/^title=/!d; s/^title=//') | 37 | summary=$(ffmpeg -i "''${target}" -f ffmetadata pipe:1 2>/dev/null | sed -r '/^title=/!d; s/^title=//') |
38 | if [[ -z "''${summary}" ]]; then | 38 | if [[ -z "''${summary}" ]]; then |
39 | echo "Title is empty, replacing with filename" >&2 | 39 | echo "Title is empty, replacing with filename" >&2 |
40 | summary=$(basename "$1") | 40 | summary=$(basename "$1") |