From d538819cd01d367fca074d878ba609f2e43a7d71 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 22 May 2018 21:50:03 +0200 Subject: enumerating ourselves doesn't work --- odin/strm/download_youtube | 4 ---- 1 file changed, 4 deletions(-) (limited to 'odin/strm') diff --git a/odin/strm/download_youtube b/odin/strm/download_youtube index 4e9eb2de..4019541b 100644 --- a/odin/strm/download_youtube +++ b/odin/strm/download_youtube @@ -227,16 +227,12 @@ printf ">>> %s <<<\n %s\n" "${msgId}" "${message}" p1args=() typeset -a p2args p2args=() - local j=0 for formatKey (${(k)fileInfo}); do [[ ${formatKey} =~ "stream.([0-9]+).codec_type" ]] || continue local i=$match[1] local cType=${fileInfo[${formatKey}]} local cName=${fileInfo[stream.${i}.codec_name]} - local i=$j - j=$((j + 1)) - printf "Stream %d: %s (%s)\n" ${i} ${cName} ${cType} if [[ ${cType} == "video" ]]; then -- cgit v1.2.3