[YoutubeDL] Fix typo in m3u8_native fixup
authorSergey M․ <dstftw@gmail.com>
Sat, 5 Mar 2016 22:30:19 +0000 (04:30 +0600)
committerSergey M․ <dstftw@gmail.com>
Sat, 5 Mar 2016 22:30:19 +0000 (04:30 +0600)
youtube_dl/YoutubeDL.py

index 94e4ea43200efe8fefae1e4db1c5149902f0d007..72d7f037971d85e7bb3bfbd6b7b4d5313c42a5ac 100755 (executable)
@@ -1672,7 +1672,7 @@ class YoutubeDL(object):
                     else:
                         assert fixup_policy in ('ignore', 'never')
 
-                if info_dict.get('protocol') == 'm3u8_native' or info_dict.get('protocol') == 'm3u8' and self._downloader.params.get('hls_prefer_native', False):
+                if info_dict.get('protocol') == 'm3u8_native' or info_dict.get('protocol') == 'm3u8' and self.params.get('hls_prefer_native', False):
                     if fixup_policy == 'warn':
                         self.report_warning('%s: malformated aac bitstream.' % (
                             info_dict['id']))