]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[extractor/common] Fix preference for m3u8 quality selection URL
authorSergey M․ <dstftw@gmail.com>
Sun, 22 Feb 2015 21:30:10 +0000 (03:30 +0600)
committerSergey M․ <dstftw@gmail.com>
Sun, 22 Feb 2015 21:30:10 +0000 (03:30 +0600)
youtube_dl/extractor/common.py

index d3f86cf4a0f82a393dbd7c50ccdc9d747bf08460..79f6d199b4190664e62cddc59c6c3d46d785d49f 100644 (file)
@@ -833,7 +833,7 @@ class InfoExtractor(object):
             'url': m3u8_url,
             'ext': ext,
             'protocol': 'm3u8',
-            'preference': -1,
+            'preference': preference - 1 if preference else -1,
             'resolution': 'multiple',
             'format_note': 'Quality selection URL',
         }]