mirror of
https://github.com/l1ving/youtube-dl
synced 2024-12-30 23:52:54 +08:00
[pluralsight] Fix format selection
This commit is contained in:
parent
16afce174e
commit
fac188c695
@ -224,6 +224,7 @@ class PluralsightIE(PluralsightBaseIE):
|
|||||||
req_format_split = req_format.split('-', 1)
|
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
|
||||||
|
req_quality = '-'.join(req_quality.split('-')[:2])
|
||||||
for allowed_quality in ALLOWED_QUALITIES:
|
for allowed_quality in ALLOWED_QUALITIES:
|
||||||
if req_ext == allowed_quality.ext and req_quality in allowed_quality.qualities:
|
if req_ext == allowed_quality.ext and req_quality in allowed_quality.qualities:
|
||||||
return (AllowedQuality(req_ext, (req_quality, )), )
|
return (AllowedQuality(req_ext, (req_quality, )), )
|
||||||
|
Loading…
Reference in New Issue
Block a user