diff options
Diffstat (limited to 'odin/strm/download_youtube')
-rw-r--r-- | odin/strm/download_youtube | 4 |
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 |