summaryrefslogtreecommitdiff
path: root/hel
diff options
context:
space:
mode:
Diffstat (limited to 'hel')
-rw-r--r--hel/recv-media.nix2
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")