mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-04 03:37:08 -05:00 
			
		
		
		
	[pluralsight] Detect agreement request (#14913)
This commit is contained in:
		@@ -131,6 +131,13 @@ class PluralsightIE(PluralsightBaseIE):
 | 
				
			|||||||
            if BLOCKED in response:
 | 
					            if BLOCKED in response:
 | 
				
			||||||
                raise ExtractorError(
 | 
					                raise ExtractorError(
 | 
				
			||||||
                    'Unable to login: %s' % BLOCKED, expected=True)
 | 
					                    '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')
 | 
					            raise ExtractorError('Unable to log in')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def _get_subtitles(self, author, clip_id, lang, name, duration, video_id):
 | 
					    def _get_subtitles(self, author, clip_id, lang, name, duration, video_id):
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user