mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-04 09:17:07 -05:00 
			
		
		
		
	[pluralsight] prevent error 429 when sensing video formats
This commit is contained in:
		
				
					committed by
					
						
						Sergey M․
					
				
			
			
				
	
			
			
			
						parent
						
							7e508ff2cf
						
					
				
				
					commit
					bea56c9569
				
			@@ -156,6 +156,9 @@ class PluralsightIE(PluralsightBaseIE):
 | 
				
			|||||||
                format_id = '%s-%s' % (ext, quality)
 | 
					                format_id = '%s-%s' % (ext, quality)
 | 
				
			||||||
                clip_url = self._download_webpage(
 | 
					                clip_url = self._download_webpage(
 | 
				
			||||||
                    request, display_id, 'Downloading %s URL' % format_id, fatal=False)
 | 
					                    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:
 | 
					                if not clip_url:
 | 
				
			||||||
                    continue
 | 
					                    continue
 | 
				
			||||||
                f.update({
 | 
					                f.update({
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user