Explorar o código

[pluralsight] Fix format code split while guessing quality

Sergey M․ %!s(int64=9) %!d(string=hai) anos
pai
achega
edc70f4aaf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      youtube_dl/extractor/pluralsight.py

+ 1 - 1
youtube_dl/extractor/pluralsight.py

@@ -172,7 +172,7 @@ class PluralsightIE(PluralsightBaseIE):
         else:
         else:
             def guess_allowed_qualities():
             def guess_allowed_qualities():
                 req_format = self._downloader.params.get('format') or 'best'
                 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:
                 if len(req_format_split) > 1:
                     req_ext, req_quality = req_format_split
                     req_ext, req_quality = req_format_split
                     for allowed_quality in ALLOWED_QUALITIES:
                     for allowed_quality in ALLOWED_QUALITIES: