[ffmpeg] fix condition(fixes #8440)

pull/8/head
remitamine 9 years ago
parent 008ab0f814
commit 593e0f43b4

@ -392,7 +392,7 @@ class FFmpegMetadataPP(FFmpegPostProcessor):
options.extend(['-metadata', '%s=%s' % (name, value)])
# https://github.com/rg3/youtube-dl/issues/8350
if info['protocol'] == 'm3u8_native' or self._downloader.params.get('hls_prefer_native', False):
if info.get('protocol') == 'm3u8_native' or self._downloader.params.get('hls_prefer_native', False):
options.extend(['-bsf:a', 'aac_adtstoasc'])
self._downloader.to_screen('[ffmpeg] Adding metadata to \'%s\'' % filename)

Loading…
Cancel
Save