mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-04 07:57:07 -05:00 
			
		
		
		
	[brightcove] Improve error message detection (#4256)
This commit is contained in:
		@@ -221,7 +221,7 @@ class BrightcoveIE(InfoExtractor):
 | 
				
			|||||||
        webpage = self._download_webpage(req, video_id)
 | 
					        webpage = self._download_webpage(req, video_id)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        error_msg = self._html_search_regex(
 | 
					        error_msg = self._html_search_regex(
 | 
				
			||||||
            r"<h1>We're sorry.</h1>\s*<p>(.*?)</p>", webpage,
 | 
					            r"<h1>We're sorry.</h1>([\s\n]*<p>.*?</p>)+", webpage,
 | 
				
			||||||
            'error message', default=None)
 | 
					            'error message', default=None)
 | 
				
			||||||
        if error_msg is not None:
 | 
					        if error_msg is not None:
 | 
				
			||||||
            raise ExtractorError(
 | 
					            raise ExtractorError(
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user