From b6a782ded40f2c09cda42b9e9c5cf6a7c8221650 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 3 Oct 2016 16:48:28 +0200 Subject: chapter titles do not count --- hel/recv-media.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hel') diff --git a/hel/recv-media.nix b/hel/recv-media.nix index ae56f991..52d5bae6 100644 --- a/hel/recv-media.nix +++ b/hel/recv-media.nix @@ -36,7 +36,7 @@ writeScriptBin "recv-media" '' ${if notifyUser == null then "" else "#"}exit 0 ( - summary=${if showTitle then ''$(ffmpeg -i "''${target}" -f ffmetadata pipe:1 2>/dev/null | sed -r '/^title=/!d; s/^title=//')'' else ''""''} + summary=${if showTitle then ''$(ffmpeg -i "''${target}" -f ffmetadata pipe:1 2>/dev/null | sed -r '/^\[CHAPTER\]$/q; /^title=/!d; s/^title=//')'' else ''""''} [[ -z "''${summary}" ]] && summary=$(basename "$1") printf "%s\n%s\n" "''${summary}" "" | notify-${notifyUser} -a recv-media || true ) || true -- cgit v1.2.3