diff options
| author | Sergey M․ <dstftw@gmail.com> | 2017-02-10 22:48:11 +0700 | 
|---|---|---|
| committer | Sergey M․ <dstftw@gmail.com> | 2017-02-10 22:48:11 +0700 | 
| commit | 9dd5408c99c6ff101ac8302dea5d5c5bfdfc40c3 (patch) | |
| tree | b9608066439db265808ca0e07312232c70fd2704 | |
| parent | 951070957516f0044c5dc89bc5ff3c74c30bd0db (diff) | |
| download | hypervideo-pre-9dd5408c99c6ff101ac8302dea5d5c5bfdfc40c3.tar.lz hypervideo-pre-9dd5408c99c6ff101ac8302dea5d5c5bfdfc40c3.tar.xz hypervideo-pre-9dd5408c99c6ff101ac8302dea5d5c5bfdfc40c3.zip | |
[pluralsight] Detect blocked account error message (#12070)
| -rw-r--r-- | youtube_dl/extractor/pluralsight.py | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/youtube_dl/extractor/pluralsight.py b/youtube_dl/extractor/pluralsight.py index 5c798e874..00b275eb1 100644 --- a/youtube_dl/extractor/pluralsight.py +++ b/youtube_dl/extractor/pluralsight.py @@ -92,6 +92,10 @@ class PluralsightIE(PluralsightBaseIE):              raise ExtractorError('Unable to login: %s' % error, expected=True)          if all(p not in response for p in ('__INITIAL_STATE__', '"currentUser"')): +            BLOCKED = 'Your account has been blocked due to suspicious activity' +            if BLOCKED in response: +                raise ExtractorError( +                    'Unable to login: %s' % BLOCKED, expected=True)              raise ExtractorError('Unable to log in')      def _get_subtitles(self, author, clip_id, lang, name, duration, video_id): | 
