diff options
author | Andrzej Lichnerowicz <andrzej@lichnerowicz.pl> | 2015-09-26 21:58:33 +0200 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-11-21 23:49:58 +0600 |
commit | bea56c95699af594586095e5ea88e9857049c6a1 (patch) | |
tree | fd21afea968996da41c9561d2ef289968c2ff4a2 /youtube_dl/extractor | |
parent | 7e508ff2cf8f8f8b1784db6fb33994839841d122 (diff) |
[pluralsight] prevent error 429 when sensing video formats
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/pluralsight.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube_dl/extractor/pluralsight.py b/youtube_dl/extractor/pluralsight.py index 7693282a5..d542a9e0e 100644 --- a/youtube_dl/extractor/pluralsight.py +++ b/youtube_dl/extractor/pluralsight.py @@ -156,6 +156,9 @@ class PluralsightIE(PluralsightBaseIE): format_id = '%s-%s' % (ext, quality) clip_url = self._download_webpage( request, display_id, 'Downloading %s URL' % format_id, fatal=False) + # #6989: sleep 3 seconds to avoid 429 errors. + # should help with #6842. + self._sleep(3, display_id) if not clip_url: continue f.update({ |