projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16afce1
)
[pluralsight] Fix format selection
author
Sergey M․
<dstftw@gmail.com>
Sun, 6 Aug 2017 01:44:28 +0000
(08:44 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 6 Aug 2017 01:44:28 +0000
(08:44 +0700)
youtube_dl/extractor/pluralsight.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/pluralsight.py
b/youtube_dl/extractor/pluralsight.py
index e45d9fe552e2c5af4c3f35182aa8063dcca9e390..d35f54ce86c7e38682fb9b13b38713878195182a 100644
(file)
--- 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, )), )