1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-02-14 04:12:57 +08:00

use .get to prevent error

This commit is contained in:
pulpe 2014-02-22 18:35:46 +01:00
parent 2feb12f349
commit 1eb2bf2c7e

View File

@ -464,7 +464,7 @@ class FFmpegMetadataPP(FFmpegPostProcessor):
filename = info['filepath']
temp_filename = prepend_extension(filename, 'temp')
if info['ext'] == u'm4a':
if info.get('ext') == u'm4a':
options = ['-vn', '-acodec', 'copy']
else:
options = ['-c', 'copy']