]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[pluralsight] Fix format code split while guessing quality
authorSergey M․ <dstftw@gmail.com>
Sat, 5 Dec 2015 19:40:13 +0000 (01:40 +0600)
committerSergey M․ <dstftw@gmail.com>
Sat, 5 Dec 2015 19:40:13 +0000 (01:40 +0600)
youtube_dl/extractor/pluralsight.py

index 336374bf7737d6d42ed4cdd599e26619360b7181..55c11b3bf89be7196c3c95d0a3fb25dae27ce51b 100644 (file)
@@ -172,7 +172,7 @@ class PluralsightIE(PluralsightBaseIE):
         else:
             def guess_allowed_qualities():
                 req_format = self._downloader.params.get('format') or 'best'
-                req_format_split = req_format.split('-')
+                req_format_split = req_format.split('-', 1)
                 if len(req_format_split) > 1:
                     req_ext, req_quality = req_format_split
                     for allowed_quality in ALLOWED_QUALITIES: