From 5aeffcfb6a270b9526addc44e7c1b4756cbcd260 Mon Sep 17 00:00:00 2001 From: j Date: Mon, 27 Jun 2016 16:51:18 +0200 Subject: [PATCH] check first audio track --- pandora/archive/extract.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/archive/extract.py b/pandora/archive/extract.py index a37f88a0..4b996764 100644 --- a/pandora/archive/extract.py +++ b/pandora/archive/extract.py @@ -242,7 +242,7 @@ def stream(video, target, profile, info, audio_track=0, flags={}): audio_only = True # ignore some unsupported audio codecs - if info['audio'] and info['audio'].get('codec') in ('qdmc', ): + if info['audio'] and info['audio'][0].get('codec') in ('qdmc', ): audio_settings = ['-an'] elif info['audio']: if video_settings == ['-vn'] or not info['video']: