about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2014-11-20 18:44:54 +0100
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2014-11-20 18:44:54 +0100
commit4d46c1c68ceae04de6195f6c7bf7b91bed06c162 (patch)
treec9796902232d4887b95b1cfbb0cae1416b3aaafc
parentd6f714f321d41169d26ccd23bcc8f3987fa6baae (diff)
downloadyoutube-dl-4d46c1c68ceae04de6195f6c7bf7b91bed06c162.tar.gz
youtube-dl-4d46c1c68ceae04de6195f6c7bf7b91bed06c162.tar.xz
youtube-dl-4d46c1c68ceae04de6195f6c7bf7b91bed06c162.zip
[brightcove] Improve error message detection (#4256)
-rw-r--r--youtube_dl/extractor/brightcove.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/brightcove.py b/youtube_dl/extractor/brightcove.py
index 8d5acef14..2db7f9fef 100644
--- a/youtube_dl/extractor/brightcove.py
+++ b/youtube_dl/extractor/brightcove.py
@@ -221,7 +221,7 @@ class BrightcoveIE(InfoExtractor):
         webpage = self._download_webpage(req, video_id)
 
         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)
         if error_msg is not None:
             raise ExtractorError(