[common] correctly lower the preference of m3u8 master manifest format
authorRemita Amine <remitamine@gmail.com>
Sun, 7 Aug 2016 09:58:11 +0000 (10:58 +0100)
committerRemita Amine <remitamine@gmail.com>
Sun, 7 Aug 2016 09:59:09 +0000 (10:59 +0100)
youtube_dl/extractor/common.py

index 67f49f51b52c85c488851903e309c38c217f23dc..0891309dd506dab2f7c44c256fdd6203e846be80 100644 (file)
@@ -1140,7 +1140,7 @@ class InfoExtractor(object):
             'url': m3u8_url,
             'ext': ext,
             'protocol': 'm3u8',
-            'preference': -100,
+            'preference': preference - 100 if preference else -100,
             'resolution': 'multiple',
             'format_note': 'Quality selection URL',
         }