mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-19 18:45:35 +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']
|
filename = info['filepath']
|
||||||
temp_filename = prepend_extension(filename, 'temp')
|
temp_filename = prepend_extension(filename, 'temp')
|
||||||
|
|
||||||
if info['ext'] == u'm4a':
|
if info.get('ext') == u'm4a':
|
||||||
options = ['-vn', '-acodec', 'copy']
|
options = ['-vn', '-acodec', 'copy']
|
||||||
else:
|
else:
|
||||||
options = ['-c', 'copy']
|
options = ['-c', 'copy']
|
||||||
|
Loading…
Reference in New Issue
Block a user