1
0
Fork 0
mirror of https://github.com/blackjack4494/yt-dlc.git synced 2024-12-24 08:45:27 +00:00

[pluralsight] Fix format code split while guessing quality

This commit is contained in:
Sergey M․ 2015-12-06 01:40:13 +06:00
parent 756926ff00
commit edc70f4aaf

View file

@ -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: