aboutsummaryrefslogtreecommitdiffhomepage
path: root/youtube_dl/extractor/pluralsight.py
diff options
context:
space:
mode:
authorSergey M․ <[email protected]>2017-08-06 08:44:28 +0700
committerSergey M․ <[email protected]>2017-08-06 08:44:28 +0700
commitfac188c6954edcccf3104abc3ac0155125a7d427 (patch)
treed94e120612f93ffd91a2d9f5a429c6da18dd85b5 /youtube_dl/extractor/pluralsight.py
parent16afce174ea71690844d37776d518ae374b896ea (diff)
downloadyoutube-dl-fac188c6954edcccf3104abc3ac0155125a7d427.tar.gz
youtube-dl-fac188c6954edcccf3104abc3ac0155125a7d427.zip
[pluralsight] Fix format selection
Diffstat (limited to 'youtube_dl/extractor/pluralsight.py')
-rw-r--r--youtube_dl/extractor/pluralsight.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/youtube_dl/extractor/pluralsight.py b/youtube_dl/extractor/pluralsight.py
index e45d9fe55..d35f54ce8 100644
--- a/youtube_dl/extractor/pluralsight.py
+++ b/youtube_dl/extractor/pluralsight.py
@@ -224,6 +224,7 @@ class PluralsightIE(PluralsightBaseIE):
req_format_split = req_format.split('-', 1)
if len(req_format_split) > 1:
req_ext, req_quality = req_format_split
+ req_quality = '-'.join(req_quality.split('-')[:2])
for allowed_quality in ALLOWED_QUALITIES:
if req_ext == allowed_quality.ext and req_quality in allowed_quality.qualities:
return (AllowedQuality(req_ext, (req_quality, )), )