aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl/postprocessor/ffmpeg.py
diff options
context:
space:
mode:
authorremitamine <remitamine@gmail.com>2016-02-05 15:12:06 +0100
committerremitamine <remitamine@gmail.com>2016-02-05 15:12:06 +0100
commit593e0f43b43d5a90d6e3430aeb94357ef81fb1ab (patch)
tree42af1e5aa5d02e81d80adad34d23784a77dcfe81 /youtube_dl/postprocessor/ffmpeg.py
parent008ab0f814a84caebeb7551b86cc0e7422eda6b7 (diff)
downloadyoutube-dl-593e0f43b43d5a90d6e3430aeb94357ef81fb1ab.zip
youtube-dl-593e0f43b43d5a90d6e3430aeb94357ef81fb1ab.tar.gz
youtube-dl-593e0f43b43d5a90d6e3430aeb94357ef81fb1ab.tar.bz2
[ffmpeg] fix condition(fixes #8440)
Diffstat (limited to 'youtube_dl/postprocessor/ffmpeg.py')
-rw-r--r--youtube_dl/postprocessor/ffmpeg.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/postprocessor/ffmpeg.py b/youtube_dl/postprocessor/ffmpeg.py
index e293e03..7e85a70 100644
--- a/youtube_dl/postprocessor/ffmpeg.py
+++ b/youtube_dl/postprocessor/ffmpeg.py
@@ -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)