mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-27 18:52:19 +00:00
[pluralsight] Detect agreement request (#14913)
This commit is contained in:
parent
d4f05d4731
commit
c94427dd60
1 changed files with 7 additions and 0 deletions
|
@ -131,6 +131,13 @@ def _login(self):
|
|||
if BLOCKED in response:
|
||||
raise ExtractorError(
|
||||
'Unable to login: %s' % BLOCKED, expected=True)
|
||||
MUST_AGREE = 'To continue using Pluralsight, you must agree to'
|
||||
if any(p in response for p in (MUST_AGREE, '>Disagree<', '>Agree<')):
|
||||
raise ExtractorError(
|
||||
'Unable to login: %s some documents. Go to pluralsight.com, '
|
||||
'log in and agree with what Pluralsight requires.'
|
||||
% MUST_AGREE, expected=True)
|
||||
|
||||
raise ExtractorError('Unable to log in')
|
||||
|
||||
def _get_subtitles(self, author, clip_id, lang, name, duration, video_id):
|
||||
|
|
Loading…
Reference in a new issue