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:
parent
2feb12f349
commit
1eb2bf2c7e
@ -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']
|
||||
|
Loading…
Reference in New Issue
Block a user