1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[pluralsight] Fix format selection

This commit is contained in:
Sergey M․ 2017-08-06 08:44:28 +07:00
parent 16afce174e
commit fac188c695
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -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, )), )