Преглед на файлове

[pluralsight] Clarify allowed qualities guessing rationale

Sergey M․ преди 10 години
родител
ревизия
cf186b77a7
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      youtube_dl/extractor/pluralsight.py

+ 3 - 0
youtube_dl/extractor/pluralsight.py

@@ -139,6 +139,9 @@ class PluralsightIE(PluralsightBaseIE):
             AllowedQuality('mp4', ('low', 'medium', 'high',)),
             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):
         if self._downloader.params.get('listformats', False):
             allowed_qualities = ALLOWED_QUALITIES
             allowed_qualities = ALLOWED_QUALITIES
         else:
         else: