Quellcode durchsuchen

[pluralsight] Extend anti-throttling timeout (#28712)

quyleanh vor 4 Jahren
Ursprung
Commit
79e4ccfc4b
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      youtube_dl/extractor/pluralsight.py

+ 1 - 1
youtube_dl/extractor/pluralsight.py

@@ -393,7 +393,7 @@ query viewClip {
                 # To somewhat reduce the probability of these consequences
                 # we will sleep random amount of time before each call to ViewClip.
                 self._sleep(
-                    random.randint(2, 5), display_id,
+                    random.randint(5, 10), display_id,
                     '%(video_id)s: Waiting for %(timeout)s seconds to avoid throttling')
 
                 if not viewclip: