A feature-rich command-line audio/video downloader
[pluralsight] Detect blocked account error message (#12070)
Sergey M․9dd5408c99c6
diff --git a/youtube_dl/extractor/pluralsight.py b/youtube_dl/extractor/pluralsight.pyindex 5c798e8748..00b275eb14 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):