summaryrefslogtreecommitdiff
path: root/odin/strm
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-05-22 21:50:03 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-05-22 21:50:03 +0200
commitd538819cd01d367fca074d878ba609f2e43a7d71 (patch)
treef8e1f2b5ef42f0f96988693a41670a13aa2ad9ae /odin/strm
parent41bb298624796dba6149a771748c829fb4f0e570 (diff)
downloadnixos-d538819cd01d367fca074d878ba609f2e43a7d71.tar
nixos-d538819cd01d367fca074d878ba609f2e43a7d71.tar.gz
nixos-d538819cd01d367fca074d878ba609f2e43a7d71.tar.bz2
nixos-d538819cd01d367fca074d878ba609f2e43a7d71.tar.xz
nixos-d538819cd01d367fca074d878ba609f2e43a7d71.zip
enumerating ourselves doesn't work
Diffstat (limited to 'odin/strm')
-rw-r--r--odin/strm/download_youtube4
1 files changed, 0 insertions, 4 deletions
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}"
227 p1args=() 227 p1args=()
228 typeset -a p2args 228 typeset -a p2args
229 p2args=() 229 p2args=()
230 local j=0
231 for formatKey (${(k)fileInfo}); do 230 for formatKey (${(k)fileInfo}); do
232 [[ ${formatKey} =~ "stream.([0-9]+).codec_type" ]] || continue 231 [[ ${formatKey} =~ "stream.([0-9]+).codec_type" ]] || continue
233 local i=$match[1] 232 local i=$match[1]
234 local cType=${fileInfo[${formatKey}]} 233 local cType=${fileInfo[${formatKey}]}
235 local cName=${fileInfo[stream.${i}.codec_name]} 234 local cName=${fileInfo[stream.${i}.codec_name]}
236 235
237 local i=$j
238 j=$((j + 1))
239
240 printf "Stream %d: %s (%s)\n" ${i} ${cName} ${cType} 236 printf "Stream %d: %s (%s)\n" ${i} ${cName} ${cType}
241 237
242 if [[ ${cType} == "video" ]]; then 238 if [[ ${cType} == "video" ]]; then