aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-11-22 00:56:40 +0600
committerSergey M․ <dstftw@gmail.com>2015-11-22 00:56:40 +0600
commitcf186b77a79a0bf6f322bc1e2f610471eab3b01c (patch)
tree1f7ce6adbddca4de6dcb3ba9c50af01606ff652f
parenta3372437bfe57f5b450bfdd60105bb6120595928 (diff)
downloadyoutube-dl-cf186b77a79a0bf6f322bc1e2f610471eab3b01c.tar.xz
[pluralsight] Clarify allowed qualities guessing rationale
-rw-r--r--youtube_dl/extractor/pluralsight.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube_dl/extractor/pluralsight.py b/youtube_dl/extractor/pluralsight.py
index 16de0fd1c..3dee616c1 100644
--- a/youtube_dl/extractor/pluralsight.py
+++ b/youtube_dl/extractor/pluralsight.py
@@ -139,6 +139,9 @@ class PluralsightIE(PluralsightBaseIE):
AllowedQuality('mp4', ('low', 'medium', 'high',)),
)
+ # In order to minimize the number of calls to ViewClip API and reduce
+ # the probability of being throttled or banned by Pluralsight we will request
+ # only single format until explicit listformats was requested.
if self._downloader.params.get('listformats', False):
allowed_qualities = ALLOWED_QUALITIES
else: