0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-26 02:55:17 +00:00

[brightcove] Improve error message detection (#4256)

This commit is contained in:
Jaime Marquínez Ferrándiz 2014-11-20 18:44:54 +01:00
parent d6f714f321
commit 4d46c1c68c

View file

@ -221,7 +221,7 @@ def _get_video_info(self, video_id, query_str, query, referer=None):
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(